summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoritojun <itojun@openbsd.org>2002-06-08 20:59:52 +0000
committeritojun <itojun@openbsd.org>2002-06-08 20:59:52 +0000
commit16106542fbd3a0d43354218d47953ca653a6493a (patch)
tree78d0c9aa03234c3558099e8c4adf61a64f198f39
parentELF architectures all support weak aliases, enable them for this part. (diff)
downloadwireguard-openbsd-16106542fbd3a0d43354218d47953ca653a6493a.tar.xz
wireguard-openbsd-16106542fbd3a0d43354218d47953ca653a6493a.zip
comment on IPv6 link-local twists
-rw-r--r--sbin/pfctl/parse.y5
1 files changed, 3 insertions, 2 deletions
diff --git a/sbin/pfctl/parse.y b/sbin/pfctl/parse.y
index c6c07a114d3..a532383706d 100644
--- a/sbin/pfctl/parse.y
+++ b/sbin/pfctl/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.84 2002/06/08 09:41:52 kjell Exp $ */
+/* $OpenBSD: parse.y,v 1.85 2002/06/08 20:59:52 itojun Exp $ */
/*
* Copyright (c) 2001 Markus Friedl. All rights reserved.
@@ -75,7 +75,7 @@ struct node_host {
u_int8_t not;
u_int8_t noroute;
struct node_host *next;
- u_int32_t ifindex;
+ u_int32_t ifindex; /* link-local IPv6 addrs */
};
struct node_port {
@@ -1864,6 +1864,7 @@ expand_rule(struct pf_rule *r,
LOOP_THROUGH(struct node_gid, gid, gids,
r->af = af;
+ /* for link-local IPv6 address, interface must match up */
if ((r->af && src_host->af && r->af != src_host->af) ||
(r->af && dst_host->af && r->af != dst_host->af) ||
(src_host->af && dst_host->af &&