summaryrefslogtreecommitdiffstats
path: root/include/net/ip.h
diff options
context:
space:
mode:
authorDavid S. Miller2011-07-05 10:45:05 +0200
committerDavid S. Miller2011-07-06 07:34:52 +0200
commitdc99f600698dcac69b8f56dda9a8a00d645c5ffc (patch)
tree81599e4397761610d5020c03e2571eeceaa859b6 /include/net/ip.h
parentpacket: Add helpers to register/unregister ->prot_hook (diff)
downloadkernel-qcow2-linux-dc99f600698dcac69b8f56dda9a8a00d645c5ffc.tar.gz
kernel-qcow2-linux-dc99f600698dcac69b8f56dda9a8a00d645c5ffc.tar.xz
kernel-qcow2-linux-dc99f600698dcac69b8f56dda9a8a00d645c5ffc.zip
packet: Add fanout support.
Fanouts allow packet capturing to be demuxed to a set of AF_PACKET sockets. Two fanout policies are implemented: 1) Hashing based upon skb->rxhash 2) Pure round-robin An AF_PACKET socket must be fully bound before it tries to add itself to a fanout. All AF_PACKET sockets trying to join the same fanout must all have the same bind settings. Fanouts are identified (within a network namespace) by a 16-bit ID. The first socket to try to add itself to a fanout with a particular ID, creates that fanout. When the last socket leaves the fanout (which happens only when the socket is closed), that fanout is destroyed. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/ip.h')
0 files changed, 0 insertions, 0 deletions