diff options
author | Patrick McHardy <kaber@trash.net> | 2008-07-18 21:05:19 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-07-18 21:05:19 -0400 |
commit | 8913336a7e8d56e984109a3137d6c0e3362596a4 (patch) | |
tree | 16e2ad819112b59a759daff79651955e9bfab1dd /include | |
parent | 3ca4095f246c21c285d9e4be2ea4d3ee7fbacebd (diff) |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/if_packet.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/if_packet.h b/include/linux/if_packet.h index a630295b255f..18db0668065a 100644 --- a/include/linux/if_packet.h +++ b/include/linux/if_packet.h | |||
@@ -45,6 +45,7 @@ struct sockaddr_ll | |||
45 | #define PACKET_ORIGDEV 9 | 45 | #define PACKET_ORIGDEV 9 |
46 | #define PACKET_VERSION 10 | 46 | #define PACKET_VERSION 10 |
47 | #define PACKET_HDRLEN 11 | 47 | #define PACKET_HDRLEN 11 |
48 | #define PACKET_RESERVE 12 | ||
48 | 49 | ||
49 | struct tpacket_stats | 50 | struct tpacket_stats |
50 | { | 51 | { |