summaryrefslogtreecommitdiff
path: root/include/uapi/linux
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2017-04-24 19:46:28 +0300
committerDavid S. Miller <davem@davemloft.net>2017-04-24 19:46:28 +0300
commit6a32a44d1e3d10c79abd9ef59ee34b46e00f242b (patch)
tree34e3d06d74fadf19d137e48d674d4df77a55fe2a /include/uapi/linux
parent69226896ad636b94f6d2e55d75ff21a29c4de83b (diff)
parent28be04f5c1c95bdf5614af19f7faf7d4fb781fa6 (diff)
downloadlinux-6a32a44d1e3d10c79abd9ef59ee34b46e00f242b.tar.xz
Merge branch 'packet-fanout-unique-id'
Mike Maloney says: ==================== packet: Add option to create new fanout group with unique id. Fanout uses a per net global namespace. A process that intends to create a new fanout group can accidentally join an existing group. It is not possible to detect this. Add a socket option to specify on the first call to setsockopt(..., PACKET_FANOUT, ...) to ensure that a new group is created. Also add tests. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi/linux')
-rw-r--r--include/uapi/linux/if_packet.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/if_packet.h b/include/uapi/linux/if_packet.h
index 9e7edfd8141e..4df96a7dd4fa 100644
--- a/include/uapi/linux/if_packet.h
+++ b/include/uapi/linux/if_packet.h
@@ -66,6 +66,7 @@ struct sockaddr_ll {
#define PACKET_FANOUT_CBPF 6
#define PACKET_FANOUT_EBPF 7
#define PACKET_FANOUT_FLAG_ROLLOVER 0x1000
+#define PACKET_FANOUT_FLAG_UNIQUEID 0x2000
#define PACKET_FANOUT_FLAG_DEFRAG 0x8000
struct tpacket_stats {