aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/linux/netfilter.h5
-rw-r--r--include/linux/netfilter_ipv4.h5
2 files changed, 5 insertions, 5 deletions
diff --git a/include/linux/netfilter.h b/include/linux/netfilter.h
index ec60856408..54b97a1bab 100644
--- a/include/linux/netfilter.h
+++ b/include/linux/netfilter.h
@@ -193,6 +193,11 @@ extern void nf_ct_attach(struct sk_buff *, struct sk_buff *);
193/* FIXME: Before cache is ever used, this must be implemented for real. */ 193/* FIXME: Before cache is ever used, this must be implemented for real. */
194extern void nf_invalidate_cache(int pf); 194extern void nf_invalidate_cache(int pf);
195 195
196/* Call this before modifying an existing packet: ensures it is
197 modifiable and linear to the point you care about (writable_len).
198 Returns true or false. */
199extern int skb_make_writable(struct sk_buff **pskb, unsigned int writable_len);
200
196#else /* !CONFIG_NETFILTER */ 201#else /* !CONFIG_NETFILTER */
197#define NF_HOOK(pf, hook, skb, indev, outdev, okfn) (okfn)(skb) 202#define NF_HOOK(pf, hook, skb, indev, outdev, okfn) (okfn)(skb)
198static inline void nf_ct_attach(struct sk_buff *new, struct sk_buff *skb) {} 203static inline void nf_ct_attach(struct sk_buff *new, struct sk_buff *skb) {}
diff --git a/include/linux/netfilter_ipv4.h b/include/linux/netfilter_ipv4.h
index 552815b819..fdc4a95273 100644
--- a/include/linux/netfilter_ipv4.h
+++ b/include/linux/netfilter_ipv4.h
@@ -80,11 +80,6 @@ enum nf_ip_hook_priorities {
80#ifdef __KERNEL__ 80#ifdef __KERNEL__
81extern int ip_route_me_harder(struct sk_buff **pskb); 81extern int ip_route_me_harder(struct sk_buff **pskb);
82 82
83/* Call this before modifying an existing IP packet: ensures it is
84 modifiable and linear to the point you care about (writable_len).
85 Returns true or false. */
86extern int skb_ip_make_writable(struct sk_buff **pskb,
87 unsigned int writable_len);
88#endif /*__KERNEL__*/ 83#endif /*__KERNEL__*/
89 84
90#endif /*__LINUX_IP_NETFILTER_H*/ 85#endif /*__LINUX_IP_NETFILTER_H*/