Patchwork Add PACKET_IGNORE_OUTGOING from Linux 4.20 to netpacket/packet.h

login
register
mail settings
Submitter Joseph Myers
Date Dec. 31, 2018, 10:04 p.m.
Message ID <alpine.DEB.2.21.1812312204090.27287@digraph.polyomino.org.uk>
Download mbox | patch
Permalink /patch/30917/
State New
Headers show

Comments

Joseph Myers - Dec. 31, 2018, 10:04 p.m.
This patch adds the PACKET_IGNORE_OUTGOING constant from Linux 4.20 to
netpacket/packet.h.

Tested for x86_64.

2018-12-31  Joseph Myers  <joseph@codesourcery.com>

	* sysdeps/unix/sysv/linux/netpacket/packet.h
	(PACKET_IGNORE_OUTGOING): New macro.
Dmitry Levin - Jan. 1, 2019, 1 a.m.
On Mon, Dec 31, 2018 at 10:04:26PM +0000, Joseph Myers wrote:
> This patch adds the PACKET_IGNORE_OUTGOING constant from Linux 4.20 to
> netpacket/packet.h.
> 
> Tested for x86_64.
> 
> 2018-12-31  Joseph Myers  <joseph@codesourcery.com>
> 
> 	* sysdeps/unix/sysv/linux/netpacket/packet.h
> 	(PACKET_IGNORE_OUTGOING): New macro.

OK

Patch

diff --git a/sysdeps/unix/sysv/linux/netpacket/packet.h b/sysdeps/unix/sysv/linux/netpacket/packet.h
index 8deb50b799..0f4aeab0b6 100644
--- a/sysdeps/unix/sysv/linux/netpacket/packet.h
+++ b/sysdeps/unix/sysv/linux/netpacket/packet.h
@@ -63,6 +63,7 @@  struct sockaddr_ll
 #define	PACKET_QDISC_BYPASS		20
 #define	PACKET_ROLLOVER_STATS		21
 #define	PACKET_FANOUT_DATA		22
+#define	PACKET_IGNORE_OUTGOING		23
 
 struct packet_mreq
   {