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)
committerArve Hjønnevåg <arve@android.com>
Mon, 1 Jul 2013 20:40:34 +0000 (13:40 -0700)
commitd154fc27cba2c990bbe45a32e9871afb6196ba04
tree38c1b1925ede84da9f31e261d392e175953e3859
parenta513dd43e6fea935bb5113fd13fd12e627dfeebb
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/uapi/linux/netfilter/xt_socket.h
net/netfilter/xt_socket.c