summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJP Abgrall <jpa@google.com>2011-10-01 14:44:39 +0100
committerAndy Green <andy.green@linaro.org>2011-10-02 09:39:32 +0100
commit0bba667823d9265ff21ae9c4b6534cd1ad8ce4c8 (patch)
treec01e92d893a9b0e534ba4a8d13712f129f600b8c /include
parent9c6687b0cb332ac37eaaffd37c724a8561e27e05 (diff)
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')
-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 26d7217bd4f..63594564831 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 */