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)
committerJP Abgrall <jpa@google.com>
Mon, 20 Jun 2011 20:15:08 +0000 (13:15 -0700)
commitd8cfaaaf6817a0279f0faef8ee5ddd52de12839a
tree4c6bdd7fad3e803b74e2870b2dbccbe3aa16421e
parentcf7addf29b41f90d979267b2c5111ec6d137231a
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