nf: xt_socket: export the fancy sock finder code
authorJP Abgrall <jpa@google.com>
Wed, 15 Jun 2011 23:52:40 +0000 (16:52 -0700)
committermgross <mark.gross@intel.com>
Wed, 9 Nov 2011 20:09:05 +0000 (12:09 -0800)
commitfe21c35ff9c140003c9f092e14717e097280af5e
treedd6a364aa8729a2c8463e2240ee0b08046e00b0b
parent8335c8b3bc80d5d6cf3f95ab2eca3e36dc7bb54f
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>
include/linux/netfilter/xt_socket.h
net/netfilter/xt_socket.c