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 <madkin...@gmail.com> Tested by: Ihor Kaharlichenko <madkin...@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)); _______________________________________________ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"