summaryrefslogtreecommitdiff
path: root/sbin/pfctl/parse.y
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2002-06-08 20:59:53 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2002-06-08 20:59:53 +0000
commite49d106e97c1375573b4ac5ad15d5a77496c6efb (patch)
treeb6026bc466d315a3306e4369134d2b1eac8ce2e5 /sbin/pfctl/parse.y
parent6bb08cbae98fe6f3b40554de9997ea93528f7df3 (diff)
comment on IPv6 link-local twists
Diffstat (limited to 'sbin/pfctl/parse.y')
-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 &&