]> pilppa.com Git - linux-2.6-omap-h63xx.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)
commit8913336a7e8d56e984109a3137d6c0e3362596a4
tree16e2ad819112b59a759daff79651955e9bfab1dd
parent3ca4095f246c21c285d9e4be2ea4d3ee7fbacebd
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