diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-06-15 12:40:05 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-06-15 12:40:05 -0400 |
commit | 2ed0e21b30b53d3a94e204196e523e6c8f732b56 (patch) | |
tree | de2635426477d86338a9469ce09ba0626052288f /include/linux/if_packet.h | |
parent | 0fa213310cd8fa7a51071cdcf130e26fa56e9549 (diff) | |
parent | 9cbc1cb8cd46ce1f7645b9de249b2ce8460129bb (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next-2.6: (1244 commits)
pkt_sched: Rename PSCHED_US2NS and PSCHED_NS2US
ipv4: Fix fib_trie rebalancing
Bluetooth: Fix issue with uninitialized nsh.type in DTL-1 driver
Bluetooth: Fix Kconfig issue with RFKILL integration
PIM-SM: namespace changes
ipv4: update ARPD help text
net: use a deferred timer in rt_check_expire
ieee802154: fix kconfig bool/tristate muckup
bonding: initialization rework
bonding: use is_zero_ether_addr
bonding: network device names are case sensative
bonding: elminate bad refcount code
bonding: fix style issues
bonding: fix destructor
bonding: remove bonding read/write semaphore
bonding: initialize before registration
bonding: bond_create always called with default parameters
x_tables: Convert printk to pr_err
netfilter: conntrack: optional reliable conntrack event delivery
list_nulls: add hlist_nulls_add_head and hlist_nulls_del
...
Diffstat (limited to 'include/linux/if_packet.h')
-rw-r--r-- | include/linux/if_packet.h | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/include/linux/if_packet.h b/include/linux/if_packet.h index 18db0668065a..dea7d6b7cf98 100644 --- a/include/linux/if_packet.h +++ b/include/linux/if_packet.h | |||
@@ -46,6 +46,8 @@ struct sockaddr_ll | |||
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 | #define PACKET_RESERVE 12 |
49 | #define PACKET_TX_RING 13 | ||
50 | #define PACKET_LOSS 14 | ||
49 | 51 | ||
50 | struct tpacket_stats | 52 | struct tpacket_stats |
51 | { | 53 | { |
@@ -63,14 +65,22 @@ struct tpacket_auxdata | |||
63 | __u16 tp_vlan_tci; | 65 | __u16 tp_vlan_tci; |
64 | }; | 66 | }; |
65 | 67 | ||
68 | /* Rx ring - header status */ | ||
69 | #define TP_STATUS_KERNEL 0x0 | ||
70 | #define TP_STATUS_USER 0x1 | ||
71 | #define TP_STATUS_COPY 0x2 | ||
72 | #define TP_STATUS_LOSING 0x4 | ||
73 | #define TP_STATUS_CSUMNOTREADY 0x8 | ||
74 | |||
75 | /* Tx ring - header status */ | ||
76 | #define TP_STATUS_AVAILABLE 0x0 | ||
77 | #define TP_STATUS_SEND_REQUEST 0x1 | ||
78 | #define TP_STATUS_SENDING 0x2 | ||
79 | #define TP_STATUS_WRONG_FORMAT 0x4 | ||
80 | |||
66 | struct tpacket_hdr | 81 | struct tpacket_hdr |
67 | { | 82 | { |
68 | unsigned long tp_status; | 83 | unsigned long tp_status; |
69 | #define TP_STATUS_KERNEL 0 | ||
70 | #define TP_STATUS_USER 1 | ||
71 | #define TP_STATUS_COPY 2 | ||
72 | #define TP_STATUS_LOSING 4 | ||
73 | #define TP_STATUS_CSUMNOTREADY 8 | ||
74 | unsigned int tp_len; | 84 | unsigned int tp_len; |
75 | unsigned int tp_snaplen; | 85 | unsigned int tp_snaplen; |
76 | unsigned short tp_mac; | 86 | unsigned short tp_mac; |
@@ -135,5 +145,6 @@ struct packet_mreq | |||
135 | #define PACKET_MR_MULTICAST 0 | 145 | #define PACKET_MR_MULTICAST 0 |
136 | #define PACKET_MR_PROMISC 1 | 146 | #define PACKET_MR_PROMISC 1 |
137 | #define PACKET_MR_ALLMULTI 2 | 147 | #define PACKET_MR_ALLMULTI 2 |
148 | #define PACKET_MR_UNICAST 3 | ||
138 | 149 | ||
139 | #endif | 150 | #endif |