Add Linux 4.14 ARPHRD_RAWIP to net/if_arp.h

Message ID alpine.DEB.2.20.1711152350350.3674@digraph.polyomino.org.uk
State New, archived
Headers

Commit Message

Joseph Myers Nov. 15, 2017, 11:50 p.m. UTC
  This patch adds ARPHRD_RAWIP from Linux 4.14 to the Linux
net/if_arp.h.

Tested for x86_64.

2017-11-15  Joseph Myers  <joseph@codesourcery.com>

	* sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
  

Comments

Dmitry V. Levin Nov. 16, 2017, 2:41 a.m. UTC | #1
On Wed, Nov 15, 2017 at 11:50:53PM +0000, Joseph Myers wrote:
> This patch adds ARPHRD_RAWIP from Linux 4.14 to the Linux
> net/if_arp.h.
> 
> Tested for x86_64.
> 
> 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
> 
> 	* sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
> 
> diff --git a/sysdeps/unix/sysv/linux/net/if_arp.h b/sysdeps/unix/sysv/linux/net/if_arp.h
> index 9b00644..95a7708 100644
> --- a/sysdeps/unix/sysv/linux/net/if_arp.h
> +++ b/sysdeps/unix/sysv/linux/net/if_arp.h
> @@ -101,6 +101,7 @@ struct arphdr
>  #define ARPHRD_LAPB	516		/* LAPB.  */
>  #define ARPHRD_DDCMP	517		/* Digital's DDCMP.  */
>  #define	ARPHRD_RAWHDLC	518		/* Raw HDLC.  */
> +#define ARPHRD_RAWIP	519		/* Raw IP.  */
>  
>  #define ARPHRD_TUNNEL	768		/* IPIP tunnel.  */
>  #define ARPHRD_TUNNEL6	769		/* IPIP6 tunnel.  */

This is OK.
  

Patch

diff --git a/sysdeps/unix/sysv/linux/net/if_arp.h b/sysdeps/unix/sysv/linux/net/if_arp.h
index 9b00644..95a7708 100644
--- a/sysdeps/unix/sysv/linux/net/if_arp.h
+++ b/sysdeps/unix/sysv/linux/net/if_arp.h
@@ -101,6 +101,7 @@  struct arphdr
 #define ARPHRD_LAPB	516		/* LAPB.  */
 #define ARPHRD_DDCMP	517		/* Digital's DDCMP.  */
 #define	ARPHRD_RAWHDLC	518		/* Raw HDLC.  */
+#define ARPHRD_RAWIP	519		/* Raw IP.  */
 
 #define ARPHRD_TUNNEL	768		/* IPIP tunnel.  */
 #define ARPHRD_TUNNEL6	769		/* IPIP6 tunnel.  */