diff options
| author | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-21 13:46:34 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-21 13:46:34 -0500 |
| commit | 1a324727caa26cd65a359a958c90fbd251d4aa49 (patch) | |
| tree | 543a4f413c1c99f4b5be0b3c5f3744c9e4581db9 /include/linux | |
| parent | db93a82fa9d8b4d6e31c227922eaae829253bb88 (diff) | |
| parent | 461ddf3b90bb149b99c3f675959c1bd6b11ed936 (diff) | |
Merge master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/netfilter_ipv4/ipt_sctp.h | 12 | ||||
| -rw-r--r-- | include/linux/skbuff.h | 7 |
2 files changed, 8 insertions, 11 deletions
diff --git a/include/linux/netfilter_ipv4/ipt_sctp.h b/include/linux/netfilter_ipv4/ipt_sctp.h index e93a9ec99fc2..80b3dbacd193 100644 --- a/include/linux/netfilter_ipv4/ipt_sctp.h +++ b/include/linux/netfilter_ipv4/ipt_sctp.h | |||
| @@ -7,8 +7,6 @@ | |||
| 7 | 7 | ||
| 8 | #define IPT_SCTP_VALID_FLAGS 0x07 | 8 | #define IPT_SCTP_VALID_FLAGS 0x07 |
| 9 | 9 | ||
| 10 | #define ELEMCOUNT(x) (sizeof(x)/sizeof(x[0])) | ||
| 11 | |||
| 12 | 10 | ||
| 13 | struct ipt_sctp_flag_info { | 11 | struct ipt_sctp_flag_info { |
| 14 | u_int8_t chunktype; | 12 | u_int8_t chunktype; |
| @@ -59,21 +57,21 @@ struct ipt_sctp_info { | |||
| 59 | #define SCTP_CHUNKMAP_RESET(chunkmap) \ | 57 | #define SCTP_CHUNKMAP_RESET(chunkmap) \ |
| 60 | do { \ | 58 | do { \ |
| 61 | int i; \ | 59 | int i; \ |
| 62 | for (i = 0; i < ELEMCOUNT(chunkmap); i++) \ | 60 | for (i = 0; i < ARRAY_SIZE(chunkmap); i++) \ |
| 63 | chunkmap[i] = 0; \ | 61 | chunkmap[i] = 0; \ |
| 64 | } while (0) | 62 | } while (0) |
| 65 | 63 | ||
| 66 | #define SCTP_CHUNKMAP_SET_ALL(chunkmap) \ | 64 | #define SCTP_CHUNKMAP_SET_ALL(chunkmap) \ |
| 67 | do { \ | 65 | do { \ |
| 68 | int i; \ | 66 | int i; \ |
| 69 | for (i = 0; i < ELEMCOUNT(chunkmap); i++) \ | 67 | for (i = 0; i < ARRAY_SIZE(chunkmap); i++) \ |
| 70 | chunkmap[i] = ~0; \ | 68 | chunkmap[i] = ~0; \ |
| 71 | } while (0) | 69 | } while (0) |
| 72 | 70 | ||
| 73 | #define SCTP_CHUNKMAP_COPY(destmap, srcmap) \ | 71 | #define SCTP_CHUNKMAP_COPY(destmap, srcmap) \ |
| 74 | do { \ | 72 | do { \ |
| 75 | int i; \ | 73 | int i; \ |
| 76 | for (i = 0; i < ELEMCOUNT(chunkmap); i++) \ | 74 | for (i = 0; i < ARRAY_SIZE(chunkmap); i++) \ |
| 77 | destmap[i] = srcmap[i]; \ | 75 | destmap[i] = srcmap[i]; \ |
| 78 | } while (0) | 76 | } while (0) |
| 79 | 77 | ||
| @@ -81,7 +79,7 @@ struct ipt_sctp_info { | |||
| 81 | ({ \ | 79 | ({ \ |
| 82 | int i; \ | 80 | int i; \ |
| 83 | int flag = 1; \ | 81 | int flag = 1; \ |
| 84 | for (i = 0; i < ELEMCOUNT(chunkmap); i++) { \ | 82 | for (i = 0; i < ARRAY_SIZE(chunkmap); i++) { \ |
| 85 | if (chunkmap[i]) { \ | 83 | if (chunkmap[i]) { \ |
| 86 | flag = 0; \ | 84 | flag = 0; \ |
| 87 | break; \ | 85 | break; \ |
| @@ -94,7 +92,7 @@ struct ipt_sctp_info { | |||
| 94 | ({ \ | 92 | ({ \ |
| 95 | int i; \ | 93 | int i; \ |
| 96 | int flag = 1; \ | 94 | int flag = 1; \ |
| 97 | for (i = 0; i < ELEMCOUNT(chunkmap); i++) { \ | 95 | for (i = 0; i < ARRAY_SIZE(chunkmap); i++) { \ |
| 98 | if (chunkmap[i] != ~0) { \ | 96 | if (chunkmap[i] != ~0) { \ |
| 99 | flag = 0; \ | 97 | flag = 0; \ |
| 100 | break; \ | 98 | break; \ |
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index 0a8ea8b35816..8c5d6001a923 100644 --- a/include/linux/skbuff.h +++ b/include/linux/skbuff.h | |||
| @@ -206,6 +206,7 @@ enum { | |||
| 206 | * @nfct: Associated connection, if any | 206 | * @nfct: Associated connection, if any |
| 207 | * @ipvs_property: skbuff is owned by ipvs | 207 | * @ipvs_property: skbuff is owned by ipvs |
| 208 | * @nfctinfo: Relationship of this skb to the connection | 208 | * @nfctinfo: Relationship of this skb to the connection |
| 209 | * @nfct_reasm: netfilter conntrack re-assembly pointer | ||
| 209 | * @nf_bridge: Saved data about a bridged frame - see br_netfilter.c | 210 | * @nf_bridge: Saved data about a bridged frame - see br_netfilter.c |
| 210 | * @tc_index: Traffic control index | 211 | * @tc_index: Traffic control index |
| 211 | * @tc_verd: traffic control verdict | 212 | * @tc_verd: traffic control verdict |
| @@ -264,16 +265,14 @@ struct sk_buff { | |||
| 264 | nohdr:1, | 265 | nohdr:1, |
| 265 | nfctinfo:3; | 266 | nfctinfo:3; |
| 266 | __u8 pkt_type:3, | 267 | __u8 pkt_type:3, |
| 267 | fclone:2; | 268 | fclone:2, |
| 269 | ipvs_property:1; | ||
| 268 | __be16 protocol; | 270 | __be16 protocol; |
| 269 | 271 | ||
| 270 | void (*destructor)(struct sk_buff *skb); | 272 | void (*destructor)(struct sk_buff *skb); |
| 271 | #ifdef CONFIG_NETFILTER | 273 | #ifdef CONFIG_NETFILTER |
| 272 | __u32 nfmark; | 274 | __u32 nfmark; |
| 273 | struct nf_conntrack *nfct; | 275 | struct nf_conntrack *nfct; |
| 274 | #if defined(CONFIG_IP_VS) || defined(CONFIG_IP_VS_MODULE) | ||
| 275 | __u8 ipvs_property:1; | ||
| 276 | #endif | ||
| 277 | #if defined(CONFIG_NF_CONNTRACK) || defined(CONFIG_NF_CONNTRACK_MODULE) | 276 | #if defined(CONFIG_NF_CONNTRACK) || defined(CONFIG_NF_CONNTRACK_MODULE) |
| 278 | struct sk_buff *nfct_reasm; | 277 | struct sk_buff *nfct_reasm; |
| 279 | #endif | 278 | #endif |
