Add ipfw_nptv6 module that implements Network Prefix Translation for IPv6
authorae <ae@FreeBSD.org>
Mon, 18 Jul 2016 19:46:31 +0000 (19:46 +0000)
committerae <ae@FreeBSD.org>
Mon, 18 Jul 2016 19:46:31 +0000 (19:46 +0000)
commit2c47439b3f3763ea3fc9c1ee71abf72c60868ec1
tree56b8e0a4e5424becfde9daf05ccb978bcfd634d2
parentd1967a38982e681a8970c22261f9182404af3182
Add ipfw_nptv6 module that implements Network Prefix Translation for IPv6
as defined in RFC 6296. The module works together with ipfw(4) and
implemented as its external action module. When it is loaded, it registers
as eaction and can be used in rules. The usage pattern is similar to
ipfw_nat(4). All matched by rule traffic goes to the NPT module.

Reviewed by: hrs
Obtained from: Yandex LLC
MFC after: 1 month
Relnotes: yes
Sponsored by: Yandex LLC
Differential Revision: https://reviews.freebsd.org/D6420
16 files changed:
sbin/ipfw/Makefile
sbin/ipfw/ipfw.8
sbin/ipfw/ipfw2.c
sbin/ipfw/ipfw2.h
sbin/ipfw/main.c
sbin/ipfw/nptv6.c [new file with mode: 0644]
sys/conf/NOTES
sys/conf/files
sys/conf/options
sys/modules/Makefile
sys/modules/ipfw_nptv6/Makefile [new file with mode: 0644]
sys/netinet/ip_fw.h
sys/netinet6/ip_fw_nptv6.h [new file with mode: 0644]
sys/netpfil/ipfw/nptv6/ip_fw_nptv6.c [new file with mode: 0644]
sys/netpfil/ipfw/nptv6/nptv6.c [new file with mode: 0644]
sys/netpfil/ipfw/nptv6/nptv6.h [new file with mode: 0644]