OSDN Git Service

netfilter: add IPv6 segment routing header 'srh' match
authorAhmed Abdelsalam <amsalam20@gmail.com>
Sun, 7 Jan 2018 18:22:02 +0000 (19:22 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 10 Jan 2018 15:28:44 +0000 (16:28 +0100)
commit202a8ff545ccdaa5ac2000d9201df3453c8816be
tree4fed1fb56e279949f802e566cb32c4c95cd281fd
parentcbef426ce725d46beb5ba84b9e9eb624c25462dd
netfilter: add IPv6 segment routing header 'srh' match

It allows matching packets based on Segment Routing Header
(SRH) information.
The implementation considers revision 7 of the SRH draft.
https://tools.ietf.org/html/draft-ietf-6man-segment-routing-header-07

Currently supported match options include:
(1) Next Header
(2) Hdr Ext Len
(3) Segments Left
(4) Last Entry
(5) Tag value of SRH

Signed-off-by: Ahmed Abdelsalam <amsalam20@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/uapi/linux/netfilter_ipv6/ip6t_srh.h [new file with mode: 0644]
net/ipv6/netfilter/Kconfig
net/ipv6/netfilter/Makefile
net/ipv6/netfilter/ip6t_srh.c [new file with mode: 0644]