]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r303012:
authorae <ae@FreeBSD.org>
Mon, 3 Apr 2017 07:30:47 +0000 (07:30 +0000)
committerae <ae@FreeBSD.org>
Mon, 3 Apr 2017 07:30:47 +0000 (07:30 +0000)
commitf2b9d4d15428a360ba4692447f87aa3b7c7b4d83
treed7f7d2e6e8bfe558219f475ea846398176717c43
parent8f3f0abee7d29f21741ec48bf8c0646268c4d3aa
MFC r303012:
  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
  Relnotes: yes
  Sponsored by: Yandex LLC
  Differential Revision: https://reviews.freebsd.org/D6420

MFC r304049:
  Add `stats reset` command implementation to NPTv6 module
  to be able reset statistics counters.

  Obtained from: Yandex LLC
  Sponsored by: Yandex LLC

MFC r304076:
  Make statistics nat64lsn, nat64stl an nptv6 output netstat-like:
  "@value @description" and fix build due to -Wformat errors.

MFC r314507:
  Fix NPTv6 rule counters when one_pass is not enabled.

  Consider the rule matching when both @done and @retval values
  returned from ipfw_run_eaction() are zero. And modify ipfw_nptv6()
  to return IP_FW_DENY and @done=0 when addresses do not match.

  Obtained from: Yandex LLC
  Sponsored by: Yandex LLC
17 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/ip_fw2.c
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]