git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fedora core 6 1.2949 + vserver 2.2.0
[linux-2.6.git]
/
include
/
linux
/
if_packet.h
diff --git
a/include/linux/if_packet.h
b/include/linux/if_packet.h
index
b925585
..
f3de05c
100644
(file)
--- a/
include/linux/if_packet.h
+++ b/
include/linux/if_packet.h
@@
-1,17
+1,19
@@
#ifndef __LINUX_IF_PACKET_H
#define __LINUX_IF_PACKET_H
#ifndef __LINUX_IF_PACKET_H
#define __LINUX_IF_PACKET_H
+#include <linux/types.h>
+
struct sockaddr_pkt
{
unsigned short spkt_family;
unsigned char spkt_device[14];
struct sockaddr_pkt
{
unsigned short spkt_family;
unsigned char spkt_device[14];
-
unsigned short
spkt_protocol;
+
__be16
spkt_protocol;
};
struct sockaddr_ll
{
unsigned short sll_family;
};
struct sockaddr_ll
{
unsigned short sll_family;
-
unsigned short
sll_protocol;
+
__be16
sll_protocol;
int sll_ifindex;
unsigned short sll_hatype;
unsigned char sll_pkttype;
int sll_ifindex;
unsigned short sll_hatype;
unsigned char sll_pkttype;
@@
-39,6
+41,7
@@
struct sockaddr_ll
#define PACKET_RX_RING 5
#define PACKET_STATISTICS 6
#define PACKET_COPY_THRESH 7
#define PACKET_RX_RING 5
#define PACKET_STATISTICS 6
#define PACKET_COPY_THRESH 7
+#define PACKET_AUXDATA 8
struct tpacket_stats
{
struct tpacket_stats
{
@@
-46,6
+49,15
@@
struct tpacket_stats
unsigned int tp_drops;
};
unsigned int tp_drops;
};
+struct tpacket_auxdata
+{
+ __u32 tp_status;
+ __u32 tp_len;
+ __u32 tp_snaplen;
+ __u16 tp_mac;
+ __u16 tp_net;
+};
+
struct tpacket_hdr
{
unsigned long tp_status;
struct tpacket_hdr
{
unsigned long tp_status;