Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Jun 2014 05:45:17 +0000 (UTC)
From:      Cy Schubert <cy@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r267634 - head/sys/contrib/ipfilter/netinet
Message-ID:  <201406190545.s5J5jHrG008544@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: cy
Date: Thu Jun 19 05:45:17 2014
New Revision: 267634
URL: http://svnweb.freebsd.org/changeset/base/267634

Log:
  Fix case where fastroute or "to interface" is used with incorrect FIB.
  
  PR:		183065
  Submitted by:	p-freebsd-bugs@ziemba.us
  Approved by:	glebius
  MFC after:	1 week

Modified:
  head/sys/contrib/ipfilter/netinet/ip_fil_freebsd.c

Modified: head/sys/contrib/ipfilter/netinet/ip_fil_freebsd.c
==============================================================================
--- head/sys/contrib/ipfilter/netinet/ip_fil_freebsd.c	Thu Jun 19 05:28:42 2014	(r267633)
+++ head/sys/contrib/ipfilter/netinet/ip_fil_freebsd.c	Thu Jun 19 05:45:17 2014	(r267634)
@@ -787,7 +787,7 @@ ipf_fastroute(m0, mpp, fin, fdp)
 		dst->sin_addr = fdp->fd_ip;
 
 	dst->sin_len = sizeof(*dst);
-	in_rtalloc(ro, 0);
+	in_rtalloc(ro, M_GETFIB(m0));
 
 	if ((ifp == NULL) && (ro->ro_rt != NULL))
 		ifp = ro->ro_rt->rt_ifp;



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