]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: introduce l2tp match extension
authorJames Chapman <jchapman@katalix.com>
Mon, 6 Jan 2014 10:17:08 +0000 (10:17 +0000)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 9 Jan 2014 20:36:39 +0000 (21:36 +0100)
commit4c623392b06425d553b7ddd7dada8ed320f5414d
tree904a08be6af43df01ac205c71885a038d35b8bfc
parenta7df5699bb497961404c9c759177380871a8a8f9
netfilter: introduce l2tp match extension

Introduce an xtables add-on for matching L2TP packets. Supports L2TPv2
and L2TPv3 over IPv4 and IPv6. As well as filtering on L2TP tunnel-id
and session-id, the filtering decision can also include the L2TP
packet type (control or data), protocol version (2 or 3) and
encapsulation type (UDP or IP).

The most common use for this will likely be to filter L2TP data
packets of individual L2TP tunnels or sessions. While a u32 match can
be used, the L2TP protocol headers are such that field offsets differ
depending on bits set in the header, making rules for matching generic
L2TP connections cumbersome. This match extension takes care of all
that.

Signed-off-by: James Chapman <jchapman@katalix.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/uapi/linux/netfilter/Kbuild
include/uapi/linux/netfilter/xt_l2tp.h [new file with mode: 0644]
net/netfilter/Kconfig
net/netfilter/Makefile
net/netfilter/xt_l2tp.c [new file with mode: 0644]