]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r337558, r337560
authorcy <cy@FreeBSD.org>
Fri, 17 Aug 2018 02:46:36 +0000 (02:46 +0000)
committercy <cy@FreeBSD.org>
Fri, 17 Aug 2018 02:46:36 +0000 (02:46 +0000)
commit6fb673e1e8353ece673780779eb9fde21552d3d7
tree5f0b502ed4e0ea8c4a6bfc3c5916b1aef17fa3af
parent2077f24655ef42780d46e89243ffe1adf2992f8d
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().
sys/contrib/ipfilter/netinet/ip_nat.c