mailing list of musl libc
 help / color / mirror / code / Atom feed
* [PATCH] add missing if_arp.h constant
@ 2016-09-05  2:30 Daniel Sabogal
  2016-09-05  2:30 ` [PATCH] add missing if_ether.h constants Daniel Sabogal
  0 siblings, 1 reply; 3+ messages in thread
From: Daniel Sabogal @ 2016-09-05  2:30 UTC (permalink / raw)
  To: musl

ARPHRD_6LOWPAN (IPv6 over LoWPAN) added in
linux 3.14 commit 0abc652c796dab74d34d60473ec5594cd21620be
---
 include/net/if_arp.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/net/if_arp.h b/include/net/if_arp.h
index 18d5dcf..361ecfc 100644
--- a/include/net/if_arp.h
+++ b/include/net/if_arp.h
@@ -91,6 +91,7 @@ struct arphdr {
 #define ARPHRD_CAIF 822
 #define ARPHRD_IP6GRE 823
 #define ARPHRD_NETLINK 824
+#define ARPHRD_6LOWPAN 825
 
 #define ARPHRD_VOID	  0xFFFF
 #define ARPHRD_NONE	  0xFFFE
-- 
2.10.0



^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH] add missing if_ether.h constants
  2016-09-05  2:30 [PATCH] add missing if_arp.h constant Daniel Sabogal
@ 2016-09-05  2:30 ` Daniel Sabogal
  2016-09-05 17:29   ` Szabolcs Nagy
  0 siblings, 1 reply; 3+ messages in thread
From: Daniel Sabogal @ 2016-09-05  2:30 UTC (permalink / raw)
  To: musl

ETH_P_HSR (IEC 62439-3 HSRv1) added in
linux 4.7 commit ee1c27977284907d40f7f72c2d078d709f15811f

ETH_P_TSN (IEEE 1722) added in
linux 4.3 commit 1ab1e895492d8084dfc1c854efacde219e56b8c1
this constant breaks the ascending order to match the kernel header

ETH_P_XDSA (Multiplexed DSA protocol) added in
linux 3.18 commit 3e8a72d1dae374cf6fc1dba97cec663585845ff9
---
 include/netinet/if_ether.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/include/netinet/if_ether.h b/include/netinet/if_ether.h
index 4c2322b..d81f7f2 100644
--- a/include/netinet/if_ether.h
+++ b/include/netinet/if_ether.h
@@ -14,6 +14,7 @@
 #define ETH_P_LOOP	0x0060
 #define ETH_P_PUP	0x0200
 #define ETH_P_PUPAT	0x0201
+#define ETH_P_TSN	0x22F0
 #define ETH_P_IP	0x0800
 #define ETH_P_X25	0x0805
 #define ETH_P_ARP	0x0806
@@ -60,6 +61,7 @@
 #define ETH_P_TDLS	0x890D
 #define ETH_P_FIP	0x8914
 #define ETH_P_80221	0x8917
+#define ETH_P_HSR	0x892F
 #define ETH_P_LOOPBACK	0x9000
 #define ETH_P_QINQ1	0x9100
 #define ETH_P_QINQ2	0x9200
@@ -93,6 +95,7 @@
 #define ETH_P_PHONET	0x00F5
 #define ETH_P_IEEE802154 0x00F6
 #define ETH_P_CAIF	0x00F7
+#define ETH_P_XDSA	0x00F8
 
 struct ethhdr {
 	uint8_t h_dest[ETH_ALEN];
-- 
2.10.0



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] add missing if_ether.h constants
  2016-09-05  2:30 ` [PATCH] add missing if_ether.h constants Daniel Sabogal
@ 2016-09-05 17:29   ` Szabolcs Nagy
  0 siblings, 0 replies; 3+ messages in thread
From: Szabolcs Nagy @ 2016-09-05 17:29 UTC (permalink / raw)
  To: musl; +Cc: Daniel Sabogal

* Daniel Sabogal <dsabogalcc@gmail.com> [2016-09-04 22:30:43 -0400]:
> ETH_P_HSR (IEC 62439-3 HSRv1) added in
> linux 4.7 commit ee1c27977284907d40f7f72c2d078d709f15811f
> 
> ETH_P_TSN (IEEE 1722) added in
> linux 4.3 commit 1ab1e895492d8084dfc1c854efacde219e56b8c1
> this constant breaks the ascending order to match the kernel header
> 
> ETH_P_XDSA (Multiplexed DSA protocol) added in
> linux 3.18 commit 3e8a72d1dae374cf6fc1dba97cec663585845ff9
> ---
>  include/netinet/if_ether.h | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/include/netinet/if_ether.h b/include/netinet/if_ether.h
> index 4c2322b..d81f7f2 100644
> --- a/include/netinet/if_ether.h
> +++ b/include/netinet/if_ether.h
> @@ -14,6 +14,7 @@
>  #define ETH_P_LOOP	0x0060
>  #define ETH_P_PUP	0x0200
>  #define ETH_P_PUPAT	0x0201
> +#define ETH_P_TSN	0x22F0
>  #define ETH_P_IP	0x0800
>  #define ETH_P_X25	0x0805
>  #define ETH_P_ARP	0x0806
> @@ -60,6 +61,7 @@
>  #define ETH_P_TDLS	0x890D
>  #define ETH_P_FIP	0x8914
>  #define ETH_P_80221	0x8917
> +#define ETH_P_HSR	0x892F
>  #define ETH_P_LOOPBACK	0x9000
>  #define ETH_P_QINQ1	0x9100
>  #define ETH_P_QINQ2	0x9200
> @@ -93,6 +95,7 @@
>  #define ETH_P_PHONET	0x00F5
>  #define ETH_P_IEEE802154 0x00F6
>  #define ETH_P_CAIF	0x00F7
> +#define ETH_P_XDSA	0x00F8
>  

looks ok.

the if_arp.h patch too.

>  struct ethhdr {
>  	uint8_t h_dest[ETH_ALEN];
> -- 
> 2.10.0


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-09-05 17:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-05  2:30 [PATCH] add missing if_arp.h constant Daniel Sabogal
2016-09-05  2:30 ` [PATCH] add missing if_ether.h constants Daniel Sabogal
2016-09-05 17:29   ` Szabolcs Nagy

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).