aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/netfilter
diff options
context:
space:
mode:
authorJP Abgrall <jpa@google.com>2011-06-15 16:52:40 -0700
committerJP Abgrall <jpa@google.com>2011-06-20 13:15:08 -0700
commitd8cfaaaf6817a0279f0faef8ee5ddd52de12839a (patch)
tree4c6bdd7fad3e803b74e2870b2dbccbe3aa16421e /include/linux/netfilter
parentcf7addf29b41f90d979267b2c5111ec6d137231a (diff)
downloadkernel_samsung_espresso10-d8cfaaaf6817a0279f0faef8ee5ddd52de12839a.zip
kernel_samsung_espresso10-d8cfaaaf6817a0279f0faef8ee5ddd52de12839a.tar.gz
kernel_samsung_espresso10-d8cfaaaf6817a0279f0faef8ee5ddd52de12839a.tar.bz2
nf: xt_socket: export the fancy sock finder code
The socket matching function has some nifty logic to get the struct sock from the skb or from the connection tracker. We export this so other xt_* can use it, similarly to ho how xt_socket uses nf_tproxy_get_sock. Change-Id: I11c58f59087e7f7ae09e4abd4b937cd3370fa2fd Signed-off-by: JP Abgrall <jpa@google.com>
Diffstat (limited to 'include/linux/netfilter')
-rw-r--r--include/linux/netfilter/xt_socket.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/netfilter/xt_socket.h b/include/linux/netfilter/xt_socket.h
index 26d7217..6359456 100644
--- a/include/linux/netfilter/xt_socket.h
+++ b/include/linux/netfilter/xt_socket.h
@@ -11,4 +11,10 @@ struct xt_socket_mtinfo1 {
__u8 flags;
};
+void xt_socket_put_sk(struct sock *sk);
+struct sock *xt_socket_get4_sk(const struct sk_buff *skb,
+ struct xt_action_param *par);
+struct sock *xt_socket_get6_sk(const struct sk_buff *skb,
+ struct xt_action_param *par);
+
#endif /* _XT_SOCKET_H */