summaryrefslogtreecommitdiffstats
path: root/sys/netinet6
diff options
context:
space:
mode:
authorume <ume@FreeBSD.org>2001-01-22 19:20:06 +0000
committerume <ume@FreeBSD.org>2001-01-22 19:20:06 +0000
commit301ceeb33db1ab75db3abfda07d22a539af7cd24 (patch)
tree2a9fa16c9bc13eb32513cc393a82dfa1846a2c1a /sys/netinet6
parent37695f454643c1ce3299f97397d62b250a39645c (diff)
downloadFreeBSD-src-301ceeb33db1ab75db3abfda07d22a539af7cd24.zip
FreeBSD-src-301ceeb33db1ab75db3abfda07d22a539af7cd24.tar.gz
avoid conflicting #define symbol (s/FW_IFNLEN/IP6&/).
Obtained from: KAME
Diffstat (limited to 'sys/netinet6')
-rw-r--r--sys/netinet6/ip6_fw.c4
-rw-r--r--sys/netinet6/ip6_fw.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/netinet6/ip6_fw.c b/sys/netinet6/ip6_fw.c
index 6bcef8a..bd50857 100644
--- a/sys/netinet6/ip6_fw.c
+++ b/sys/netinet6/ip6_fw.c
@@ -293,7 +293,7 @@ iface_match(struct ifnet *ifp, union ip6_fw_if *ifu, int byname)
&& ifp->if_unit != ifu->fu_via_if.unit)
return(0);
/* Check name */
- if (strncmp(ifp->if_name, ifu->fu_via_if.name, FW_IFNLEN))
+ if (strncmp(ifp->if_name, ifu->fu_via_if.name, IP6FW_IFNLEN))
return(0);
return(1);
} else if (!IN6_IS_ADDR_UNSPECIFIED(&ifu->fu_via_ip6)) { /* Zero == wildcard */
@@ -793,7 +793,7 @@ add_entry6(struct ip6_fw_head *chainptr, struct ip6_fw *frwl)
}
bcopy(frwl, ftmp, sizeof(struct ip6_fw));
- ftmp->fw_in_if.fu_via_if.name[FW_IFNLEN - 1] = '\0';
+ ftmp->fw_in_if.fu_via_if.name[IP6FW_IFNLEN - 1] = '\0';
ftmp->fw_pcnt = 0L;
ftmp->fw_bcnt = 0L;
fwc->rule = ftmp;
diff --git a/sys/netinet6/ip6_fw.h b/sys/netinet6/ip6_fw.h
index 47a9cee..0418d18 100644
--- a/sys/netinet6/ip6_fw.h
+++ b/sys/netinet6/ip6_fw.h
@@ -37,8 +37,8 @@
union ip6_fw_if {
struct in6_addr fu_via_ip6; /* Specified by IPv6 address */
struct { /* Specified by interface name */
-#define FW_IFNLEN IFNAMSIZ
- char name[FW_IFNLEN];
+#define IP6FW_IFNLEN IFNAMSIZ
+ char name[IP6FW_IFNLEN];
short unit; /* -1 means match any unit */
} fu_via_if;
};
OpenPOWER on IntegriCloud