diff options
Diffstat (limited to 'include/linux/skbuff.h')
-rw-r--r-- | include/linux/skbuff.h | 36 |
1 files changed, 23 insertions, 13 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index cc04f5cd2286..416a2e4024b2 100644 --- a/include/linux/skbuff.h +++ b/include/linux/skbuff.h | |||
@@ -27,6 +27,7 @@ | |||
27 | #include <linux/highmem.h> | 27 | #include <linux/highmem.h> |
28 | #include <linux/poll.h> | 28 | #include <linux/poll.h> |
29 | #include <linux/net.h> | 29 | #include <linux/net.h> |
30 | #include <linux/textsearch.h> | ||
30 | #include <net/checksum.h> | 31 | #include <net/checksum.h> |
31 | 32 | ||
32 | #define HAVE_ALLOC_SKB /* For the drivers to know */ | 33 | #define HAVE_ALLOC_SKB /* For the drivers to know */ |
@@ -193,7 +194,6 @@ struct skb_shared_info { | |||
193 | * @nfcache: Cache info | 194 | * @nfcache: Cache info |
194 | * @nfct: Associated connection, if any | 195 | * @nfct: Associated connection, if any |
195 | * @nfctinfo: Relationship of this skb to the connection | 196 | * @nfctinfo: Relationship of this skb to the connection |
196 | * @nf_debug: Netfilter debugging | ||
197 | * @nf_bridge: Saved data about a bridged frame - see br_netfilter.c | 197 | * @nf_bridge: Saved data about a bridged frame - see br_netfilter.c |
198 | * @private: Data which is private to the HIPPI implementation | 198 | * @private: Data which is private to the HIPPI implementation |
199 | * @tc_index: Traffic control index | 199 | * @tc_index: Traffic control index |
@@ -264,9 +264,6 @@ struct sk_buff { | |||
264 | __u32 nfcache; | 264 | __u32 nfcache; |
265 | __u32 nfctinfo; | 265 | __u32 nfctinfo; |
266 | struct nf_conntrack *nfct; | 266 | struct nf_conntrack *nfct; |
267 | #ifdef CONFIG_NETFILTER_DEBUG | ||
268 | unsigned int nf_debug; | ||
269 | #endif | ||
270 | #ifdef CONFIG_BRIDGE_NETFILTER | 267 | #ifdef CONFIG_BRIDGE_NETFILTER |
271 | struct nf_bridge_info *nf_bridge; | 268 | struct nf_bridge_info *nf_bridge; |
272 | #endif | 269 | #endif |
@@ -325,6 +322,28 @@ extern void skb_over_panic(struct sk_buff *skb, int len, | |||
325 | extern void skb_under_panic(struct sk_buff *skb, int len, | 322 | extern void skb_under_panic(struct sk_buff *skb, int len, |
326 | void *here); | 323 | void *here); |
327 | 324 | ||
325 | struct skb_seq_state | ||
326 | { | ||
327 | __u32 lower_offset; | ||
328 | __u32 upper_offset; | ||
329 | __u32 frag_idx; | ||
330 | __u32 stepped_offset; | ||
331 | struct sk_buff *root_skb; | ||
332 | struct sk_buff *cur_skb; | ||
333 | __u8 *frag_data; | ||
334 | }; | ||
335 | |||
336 | extern void skb_prepare_seq_read(struct sk_buff *skb, | ||
337 | unsigned int from, unsigned int to, | ||
338 | struct skb_seq_state *st); | ||
339 | extern unsigned int skb_seq_read(unsigned int consumed, const u8 **data, | ||
340 | struct skb_seq_state *st); | ||
341 | extern void skb_abort_seq_read(struct skb_seq_state *st); | ||
342 | |||
343 | extern unsigned int skb_find_text(struct sk_buff *skb, unsigned int from, | ||
344 | unsigned int to, struct ts_config *config, | ||
345 | struct ts_state *state); | ||
346 | |||
328 | /* Internal */ | 347 | /* Internal */ |
329 | #define skb_shinfo(SKB) ((struct skb_shared_info *)((SKB)->end)) | 348 | #define skb_shinfo(SKB) ((struct skb_shared_info *)((SKB)->end)) |
330 | 349 | ||
@@ -1219,15 +1238,6 @@ static inline void nf_reset(struct sk_buff *skb) | |||
1219 | { | 1238 | { |
1220 | nf_conntrack_put(skb->nfct); | 1239 | nf_conntrack_put(skb->nfct); |
1221 | skb->nfct = NULL; | 1240 | skb->nfct = NULL; |
1222 | #ifdef CONFIG_NETFILTER_DEBUG | ||
1223 | skb->nf_debug = 0; | ||
1224 | #endif | ||
1225 | } | ||
1226 | static inline void nf_reset_debug(struct sk_buff *skb) | ||
1227 | { | ||
1228 | #ifdef CONFIG_NETFILTER_DEBUG | ||
1229 | skb->nf_debug = 0; | ||
1230 | #endif | ||
1231 | } | 1241 | } |
1232 | 1242 | ||
1233 | #ifdef CONFIG_BRIDGE_NETFILTER | 1243 | #ifdef CONFIG_BRIDGE_NETFILTER |