diff options
author | Cedric Berger <cedric@cvs.openbsd.org> | 2004-02-11 18:34:52 +0000 |
---|---|---|
committer | Cedric Berger <cedric@cvs.openbsd.org> | 2004-02-11 18:34:52 +0000 |
commit | 9e3d280faaa9849cbdc0dc3bd88c06b10534a8db (patch) | |
tree | f4809f21d7d3566a6113f33f808e9885a94b5e66 /regress/sbin/pfctl/if2ip | |
parent | f9a9de048dd628aff9872146742fc83e71ffb3de (diff) |
Fix interface clobbering for link-local addresses. Found by Pyun YongHyeon.
Fix "antispoof for foo" when foo has no addresses.
ok+help dhartmei@, ok mcbride@
Diffstat (limited to 'regress/sbin/pfctl/if2ip')
-rw-r--r-- | regress/sbin/pfctl/if2ip | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/regress/sbin/pfctl/if2ip b/regress/sbin/pfctl/if2ip index 8c4eb1e7cf6..56324cc25c1 100644 --- a/regress/sbin/pfctl/if2ip +++ b/regress/sbin/pfctl/if2ip @@ -3,8 +3,8 @@ # done by the userland pfctl tool and by the kernel PF dynamic code. if2ip_user() { - echo "pass in on tun100 from $1" | pfctl -nvf- 2>/dev/null \ - | awk '{print " "$7}' | sort -u + echo "pass in from $1" | pfctl -nvf- 2>/dev/null \ + | awk '{print " "(($3=="on")?$7:$5)}' | sort -u } kernel_spec() { |