]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r332457:
authorae <ae@FreeBSD.org>
Thu, 19 Apr 2018 10:15:11 +0000 (10:15 +0000)
committerae <ae@FreeBSD.org>
Thu, 19 Apr 2018 10:15:11 +0000 (10:15 +0000)
commit7724244127f15c94218b03f844f7525cd845a6ec
tree70a1fe330f3a65cf018e763c1e8229ef0d5045a3
parentf813f9341f55611f77676ac36d3c02f88b5f1880
MFC r332457:
  Use cfg->nomatch_verdict as return value from NAT64LSN handler when
  given mbuf is considered as not matched.

  If mbuf was consumed or freed during handling, we must return
  IP_FW_DENY, since ipfw's pfil handler ipfw_check_packet() expects
  IP_FW_DENY when mbuf pointer is NULL. This fixes KASSERT panics
  when NAT64 is used with INVARIANTS. Also remove unused nomatch_final
  field from struct nat64lsn_cfg.

  Reported by: Justin Holcomb <justin at justinholcomb dot me>
sys/netpfil/ipfw/nat64/nat64lsn.c
sys/netpfil/ipfw/nat64/nat64lsn.h
sys/netpfil/ipfw/nat64/nat64lsn_control.c