svn commit: r237479 - head/sys/netinet/ipfw
Alexander V. Chernikov
melifaro at FreeBSD.org
Sat Jun 23 12:40:25 UTC 2012
Author: melifaro
Date: Sat Jun 23 12:40:24 2012
New Revision: 237479
URL: http://svn.freebsd.org/changeset/base/237479
Log:
Fix interface matching by ipfw table
Submitted by: Ihor Kaharlichenko <madkinder at gmail.com>
Tested by: Ihor Kaharlichenko <madkinder at gmail.com>
Approved by: kib(mentor)
MFC after: 3 days
Modified:
head/sys/netinet/ipfw/ip_fw_table.c
Modified: head/sys/netinet/ipfw/ip_fw_table.c
==============================================================================
--- head/sys/netinet/ipfw/ip_fw_table.c Sat Jun 23 12:32:53 2012 (r237478)
+++ head/sys/netinet/ipfw/ip_fw_table.c Sat Jun 23 12:40:24 2012 (r237479)
@@ -568,7 +568,8 @@ ipfw_lookup_table_extended(struct ip_fw_
break;
case IPFW_TABLE_INTERFACE:
- KEY_LEN(iface) = strlcpy(iface.ifname, (char *)paddr, IF_NAMESIZE);
+ KEY_LEN(iface) = KEY_LEN_IFACE +
+ strlcpy(iface.ifname, (char *)paddr, IF_NAMESIZE);
/* Assume direct match */
/* FIXME: Add interface pattern matching */
xent = (struct table_xentry *)(rnh->rnh_lookup(&iface, NULL, rnh));
More information about the svn-src-head
mailing list