summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@strace.io>2022-12-11 08:00:00 +0000
committerDmitry V. Levin <ldv@strace.io>2022-12-11 08:00:00 +0000
commit759fa9f0e6a9a5188946873b2476f7dc5536a35a (patch)
tree748fdc9976c42a561956226027486720be1a9e89
parent5ed2e2c9fb15966431af311bb7613536aff5ad0f (diff)
downloadstrace-759fa9f0e6a9a5188946873b2476f7dc5536a35a.tar.gz
xlat: update ETH_P_* constants
* src/xlat/ethernet_protocols.in (ETH_P_CANXL): New constant introduced by Linux kernel commit v6.1-rc1~170^2~209^2^2~2. * tests/nlattr_ifla_vfinfo.c (main): Update expected output. * NEWS: Mention this change.
-rw-r--r--NEWS2
-rw-r--r--src/xlat/ethernet_protocols.in1
-rw-r--r--tests/nlattr_ifla_vfinfo.c2
3 files changed, 3 insertions, 2 deletions
diff --git a/NEWS b/NEWS
index 6248fd157..0b21749ea 100644
--- a/NEWS
+++ b/NEWS
@@ -3,7 +3,7 @@ Noteworthy changes in release ?.? (????-??-??)
* Improvements
* Enhanced decoding of terminal ioctl commands.
- * Updated lists of BPF_*, BTRFS_*, COUNTER_*, and MADV_* constants.
+ * Updated lists of BPF_*, BTRFS_*, COUNTER_*, ETH_P_*, and MADV_* constants.
* Updated lists of ioctl commands from Linux 6.1.
* Bug fixes
diff --git a/src/xlat/ethernet_protocols.in b/src/xlat/ethernet_protocols.in
index d9291314b..153d53b28 100644
--- a/src/xlat/ethernet_protocols.in
+++ b/src/xlat/ethernet_protocols.in
@@ -10,6 +10,7 @@ ETH_P_PPP_MP 0x0008 /* Dummy type for PPP MP frames */
ETH_P_LOCALTALK 0x0009 /* Localtalk pseudo type */
ETH_P_CAN 0x000C /* CAN: Controller Area Network */
ETH_P_CANFD 0x000D /* CANFD: CAN flexible data rate*/
+ETH_P_CANXL 0x000E /* CANXL: eXtended frame Length */
ETH_P_PPPTALK 0x0010 /* Dummy type for Atalk over PPP*/
ETH_P_TR_802_2 0x0011 /* 802.2 frames */
ETH_P_MOBITEX 0x0015 /* Mobitex (kaz@cafe.net) */
diff --git a/tests/nlattr_ifla_vfinfo.c b/tests/nlattr_ifla_vfinfo.c
index 715a584bd..af99f7a5d 100644
--- a/tests/nlattr_ifla_vfinfo.c
+++ b/tests/nlattr_ifla_vfinfo.c
@@ -351,7 +351,7 @@ main(void)
{ ARG_STR(0) NRAW(" /* ETH_P_??? */") },
{ ARG_XLAT_KNOWN(0x8, "ETH_P_PPP_MP") },
{ ARG_XLAT_KNOWN(0x800, "ETH_P_IP") },
- { ARG_STR(0xe) NRAW(" /* ETH_P_??? */") },
+ { ARG_STR(0xf) NRAW(" /* ETH_P_??? */") },
{ ARG_STR(0xfb) NRAW(" /* ETH_P_??? */") },
{ ARG_XLAT_KNOWN(0xfbfb, "ETH_P_AF_IUCV") },
{ ARG_STR(0xffff) NRAW(" /* ETH_P_??? */") },