When checking for IPv4 in add_src() and add_dat(), don't assume !IPv6 is IPv4. Revised patch which also takes the "any" operator into account.
Also, switch to if...else if statements.
Submitted by: Neel Chauhan <neel AT neelc DOT org>
Differential D21812
ipfw(8): When checking for IPv4 in add_src() and add_dat(), don't assume !IPv6 is IPv4 nc on Sep 26 2019, 10:07 PM. Authored by Tags None Referenced Files
Subscribers
Details
When checking for IPv4 in add_src() and add_dat(), don't assume !IPv6 is IPv4. Revised patch which also takes the "any" operator into account. Also, switch to if...else if statements. Submitted by: Neel Chauhan <neel AT neelc DOT org>
Diff Detail
Event TimelineComment Actions LGTM. Could you please consider avoiding putting the diffs without the context next time?
Comment Actions In the current state, it breaks rules with "any" keyword specified as a destination. Comment Actions The issue is the use of "strcmp(av, "any") != 0" which should be "strcmp(av, "any") == 0" I opened a new revision to fix the issue at D24025. Comment Actions About the atf-sh tests, I can write them. Let's first commit D24021 since there will be a merge conflict with the two. |