Add PACKET_VNET_HDR_SZ from Linux 6.4 to netpacket/packet.h

Joseph Myers joseph@codesourcery.com
Tue Aug 1 16:25:11 GMT 2023


Linux 6.4 adds a new constant PACKET_VNET_HDR_SZ; add it to glibc's
netpacket/packet.h.

Tested for x86_64.

diff --git a/sysdeps/unix/sysv/linux/netpacket/packet.h b/sysdeps/unix/sysv/linux/netpacket/packet.h
index 279f68fd34..c0fb06df53 100644
--- a/sysdeps/unix/sysv/linux/netpacket/packet.h
+++ b/sysdeps/unix/sysv/linux/netpacket/packet.h
@@ -64,6 +64,7 @@ struct sockaddr_ll
 #define	PACKET_ROLLOVER_STATS		21
 #define	PACKET_FANOUT_DATA		22
 #define	PACKET_IGNORE_OUTGOING		23
+#define	PACKET_VNET_HDR_SZ		24
 
 struct packet_mreq
   {

-- 
Joseph S. Myers
joseph@codesourcery.com


More information about the Libc-alpha mailing list