]> git.baikalelectronics.ru Git - kernel.git/commit
packet: add PACKET_RESERVE sockopt
authorPatrick McHardy <kaber@trash.net>
Sat, 19 Jul 2008 01:05:19 +0000 (18:05 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 19 Jul 2008 01:05:19 +0000 (18:05 -0700)
commit81e9289b6da4c8680cdc9ee6c3f0cb47223777a1
tree16e2ad819112b59a759daff79651955e9bfab1dd
parentedb4e3395c74326eaf94c5490ce0ae8583a8c7ff
packet: add PACKET_RESERVE sockopt

Add new sockopt to reserve some headroom in the mmaped ring frames in
front of the packet payload. This can be used f.i. when the VLAN header
needs to be (re)constructed to avoid moving the entire payload.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/if_packet.h
net/packet/af_packet.c