if: restore token ring ARP type to header
Subsystems (2)
PATCH 1/1 if: restore token ring ARP type to header
Recent removal of Token Ring breaks the build of iproute2.
Even though Token Ring support is gone from the kernel, it is worth keeping the the definition of the TR ARP type to avoid breaking userspace programs that use this file.
include/linux/if_arp.h +1 -1
@@ -82,7 +82,7 @@#define ARPHRD_FCPL 786/* Fibrechannel public loop */ #define ARPHRD_FCFABRIC 787/* Fibrechannel fabric */ /* 787->799 reserved for fibrechannel media types */ -/* 800 used to be used for token ring */ +#define ARPHRD_IEEE802_TR 800/* Magic type ident for TR */ #define ARPHRD_IEEE80211 801/* IEEE 802.11 */ #define ARPHRD_IEEE80211_PRISM 802/* IEEE 802.11 + Prism2 header */ #define ARPHRD_IEEE80211_RADIOTAP 803/* IEEE 802.11 + radiotap header */
David Miller
maintainerFrom: Stephen Hemminger <[email protected]>
Date: Tue, 22 May 2012 14:01:05 -0700
Quoted 7 lines
Recent removal of Token Ring breaks the build of iproute2.
Even though Token Ring support is gone from the kernel, it is worth keeping the the definition of the TR ARP type to avoid breaking userspace programs that use this file.
Signed-off-by Stephen Hemminger <[email protected]>
Agreed, and applied, thanks Stephen.
Quoted 5 lines · Stephen Hemminger
Recent removal of Token Ring breaks the build of iproute2.
Even though Token Ring support is gone from the kernel, it is worth keeping the the definition of the TR ARP type to avoid breaking userspace programs that use this file.
Thanks Stephen, I was trying to force errors in kernel builds by doing these kinds of define changes while doing my delete tests.
But I was not doing userspace builds, however....
Looking back at the changes I've made, the only thing similar that I can see is the ipx.h changes:
include/linux/ipx.h +1 -1
@@ -38,7 +38,7 @@ struct ipx_interface_definition {#define IPX_FRAME_8022 2#define IPX_FRAME_ETHERII 3#define IPX_FRAME_8023 4 -#define IPX_FRAME_TR_8022 5/* obsolete */ +/* obsolete token ring was 5 */ unsigned char ipx_special;#define IPX_SPECIAL_NONE 0#define IPX_PRIMARY 1
Please let me/netdev know if the above also happens to trigger any sort of userspace fallout, and we'll fix it up ASAP.
Thanks,
Paul.
Quoted 30 lines · On Tue, 22 May 2012 22:28:28 -0400 Paul Gortmaker…
Quoted 5 lines · Stephen Hemminger
Recent removal of Token Ring breaks the build of iproute2.
Even though Token Ring support is gone from the kernel, it is worth keeping the the definition of the TR ARP type to avoid breaking userspace programs that use this file.
Thanks Stephen, I was trying to force errors in kernel builds by doing these kinds of define changes while doing my delete tests.
But I was not doing userspace builds, however....
Looking back at the changes I've made, the only thing similar that I can see is the
ipx.hchanges:include/linux/ipx.h +1
-1@@ -38,7 +38,7 @@ struct ipx_interface_definition {#define IPX_FRAME_8022 2#define IPX_FRAME_ETHERII 3#define IPX_FRAME_8023 4 -#define IPX_FRAME_TR_8022 5/* obsolete */ +/* obsolete token ring was 5 */ unsigned char ipx_special;#define IPX_SPECIAL_NONE 0#define IPX_PRIMARY 1
Quoted 5 lines
Please let me/netdev know if the above also happens to trigger any sort of userspace fallout, and we'll fix it up ASAP.
Thanks,
Paul.
Assume any header processed as part of 'make headers_install' is part of kernel API and must not get broken. Therefor ipx.h must be fixed as well. Local debug stuff should not be committed to upstream repository!