diff options
author | Joseph Myers <joseph@codesourcery.com> | 2021-12-20 15:38:32 +0000 |
---|---|---|
committer | Andreas K. Hüttel <dilfridge@gentoo.org> | 2022-05-14 23:14:38 +0200 |
commit | 05dc5f20b8441400bb576247bb8b4bc51de70fdc (patch) | |
tree | 19c1f8136fd0ee24d7a4e6036eafc27064ee952d | |
parent | Update kernel version to 5.15 in tst-mman-consts.py (diff) | |
download | glibc-05dc5f20b8441400bb576247bb8b4bc51de70fdc.tar.gz glibc-05dc5f20b8441400bb576247bb8b4bc51de70fdc.tar.bz2 glibc-05dc5f20b8441400bb576247bb8b4bc51de70fdc.zip |
Add ARPHRD_CAN, ARPHRD_MCTP to net/if_arp.h
Add the constant ARPHRD_MCTP, from Linux 5.15, to net/if_arp.h, along
with ARPHRD_CAN which was added to Linux in version 2.6.25 (commit
cd05acfe65ed2cf2db683fa9a6adb8d35635263b, "[CAN]: Allocate protocol
numbers for PF_CAN") but apparently missed for glibc at the time.
Tested for x86_64.
(cherry picked from commit a94d9659cd69dbc70d3494b1cbbbb5a1551675c5)
(cherry picked from commit 5146b73d72ced9bab125e986aa99ef5fe2f88475)
-rw-r--r-- | sysdeps/unix/sysv/linux/net/if_arp.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/net/if_arp.h b/sysdeps/unix/sysv/linux/net/if_arp.h index 2a8933cde7..42910b7766 100644 --- a/sysdeps/unix/sysv/linux/net/if_arp.h +++ b/sysdeps/unix/sysv/linux/net/if_arp.h @@ -95,6 +95,8 @@ struct arphdr #define ARPHRD_ROSE 270 #define ARPHRD_X25 271 /* CCITT X.25. */ #define ARPHRD_HWX25 272 /* Boards with X.25 in firmware. */ +#define ARPHRD_CAN 280 /* Controller Area Network. */ +#define ARPHRD_MCTP 290 #define ARPHRD_PPP 512 #define ARPHRD_CISCO 513 /* Cisco HDLC. */ #define ARPHRD_HDLC ARPHRD_CISCO |