mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 14:13:01 -04:00
[NETFILTER]: ip6_tables: support MH match
This introduces match for Mobility Header (MH) described by Mobile IPv6 specification (RFC3775). User can specify the MH type or its range to be matched. Signed-off-by: Masahide NAKAMURA <nakam@linux-ipv6.org> Signed-off-by: Yasuyuki Kozakai <kozakai@linux-ipv6.org> Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
e60a13e030
commit
a0ca215a73
4 changed files with 132 additions and 0 deletions
15
include/linux/netfilter_ipv6/ip6t_mh.h
Normal file
15
include/linux/netfilter_ipv6/ip6t_mh.h
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
#ifndef _IP6T_MH_H
|
||||
#define _IP6T_MH_H
|
||||
|
||||
/* MH matching stuff */
|
||||
struct ip6t_mh
|
||||
{
|
||||
u_int8_t types[2]; /* MH type range */
|
||||
u_int8_t invflags; /* Inverse flags */
|
||||
};
|
||||
|
||||
/* Values for "invflags" field in struct ip6t_mh. */
|
||||
#define IP6T_MH_INV_TYPE 0x01 /* Invert the sense of type. */
|
||||
#define IP6T_MH_INV_MASK 0x01 /* All possible flags. */
|
||||
|
||||
#endif /*_IP6T_MH_H*/
|
||||
Loading…
Reference in a new issue