]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r337558, r337560
authorcy <cy@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 17 Aug 2018 02:46:36 +0000 (02:46 +0000)
committercy <cy@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 17 Aug 2018 02:46:36 +0000 (02:46 +0000)
commit965ba3dc7384c20f940e1a3611d1d293dadc8f25
treecd22dbc6be00f20ec088f4e6c9d0c88d48ec2778
parent120d86486b5446e7c7fef2053885bc0f27a7a0e2
MFC r337558, r337560

r337558:
Identify the return value (rval) that led to the IPv4 NAT failure
in ipf_nat_checkout() and report it in the frb_natv4out and frb_natv4in
dtrace probes.

This is currently being used to diagnose NAT failures in PR/208566. It's
rather handy so this commit makes it available for future diagnosis and
debugging efforts.

PR: 208566

r337560:
Correct a comment. Should have been detected by ipf_nat_in() not
ipf_nat_out().

git-svn-id: svn://svn.freebsd.org/base/stable/10@337948 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/contrib/ipfilter/netinet/ip_nat.c