diff options
| author | Patrick McHardy <kaber@trash.net> | 2012-08-26 13:14:31 -0400 |
|---|---|---|
| committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2012-08-29 21:00:25 -0400 |
| commit | 8a91bb0c304b0853f8c59b1b48c7822c52362cba (patch) | |
| tree | 6722adde3ea255fa80ef9c47f7a604533e72139c /include/linux | |
| parent | 320ff567f299ed3f0a2d53906e632a1b0eda5599 (diff) | |
netfilter: ip6tables: add stateless IPv6-to-IPv6 Network Prefix Translation target
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/netfilter_ipv6/Kbuild | 1 | ||||
| -rw-r--r-- | include/linux/netfilter_ipv6/ip6t_NPT.h | 16 |
2 files changed, 17 insertions, 0 deletions
diff --git a/include/linux/netfilter_ipv6/Kbuild b/include/linux/netfilter_ipv6/Kbuild index bd095bc075e9..b88c0058bf73 100644 --- a/include/linux/netfilter_ipv6/Kbuild +++ b/include/linux/netfilter_ipv6/Kbuild | |||
| @@ -1,6 +1,7 @@ | |||
| 1 | header-y += ip6_tables.h | 1 | header-y += ip6_tables.h |
| 2 | header-y += ip6t_HL.h | 2 | header-y += ip6t_HL.h |
| 3 | header-y += ip6t_LOG.h | 3 | header-y += ip6t_LOG.h |
| 4 | header-y += ip6t_NPT.h | ||
| 4 | header-y += ip6t_REJECT.h | 5 | header-y += ip6t_REJECT.h |
| 5 | header-y += ip6t_ah.h | 6 | header-y += ip6t_ah.h |
| 6 | header-y += ip6t_frag.h | 7 | header-y += ip6t_frag.h |
diff --git a/include/linux/netfilter_ipv6/ip6t_NPT.h b/include/linux/netfilter_ipv6/ip6t_NPT.h new file mode 100644 index 000000000000..f763355481b5 --- /dev/null +++ b/include/linux/netfilter_ipv6/ip6t_NPT.h | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | #ifndef __NETFILTER_IP6T_NPT | ||
| 2 | #define __NETFILTER_IP6T_NPT | ||
| 3 | |||
| 4 | #include <linux/types.h> | ||
| 5 | #include <linux/netfilter.h> | ||
| 6 | |||
| 7 | struct ip6t_npt_tginfo { | ||
| 8 | union nf_inet_addr src_pfx; | ||
| 9 | union nf_inet_addr dst_pfx; | ||
| 10 | __u8 src_pfx_len; | ||
| 11 | __u8 dst_pfx_len; | ||
| 12 | /* Used internally by the kernel */ | ||
| 13 | __sum16 adjustment; | ||
| 14 | }; | ||
| 15 | |||
| 16 | #endif /* __NETFILTER_IP6T_NPT */ | ||
