Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Jun 2012 12:40:24 +0000 (UTC)
From:      "Alexander V. Chernikov" <melifaro@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r237479 - head/sys/netinet/ipfw
Message-ID:  <201206231240.q5NCeOQB041303@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@gmail.com>
  Tested by:        Ihor Kaharlichenko <madkinder@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));



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201206231240.q5NCeOQB041303>