svn commit: r195117 - user/kmacy/releng_7_2_fcs/sys/netinet
Kip Macy
kmacy at FreeBSD.org
Sat Jun 27 20:53:08 UTC 2009
Author: kmacy
Date: Sat Jun 27 20:53:07 2009
New Revision: 195117
URL: http://svn.freebsd.org/changeset/base/195117
Log:
don't cache per-packet balanced routes
Modified:
user/kmacy/releng_7_2_fcs/sys/netinet/in_pcb.c
Modified: user/kmacy/releng_7_2_fcs/sys/netinet/in_pcb.c
==============================================================================
--- user/kmacy/releng_7_2_fcs/sys/netinet/in_pcb.c Sat Jun 27 20:47:59 2009 (r195116)
+++ user/kmacy/releng_7_2_fcs/sys/netinet/in_pcb.c Sat Jun 27 20:53:07 2009 (r195117)
@@ -537,7 +537,11 @@ in_pcbrtalloc(struct inpcb *inp, in_addr
}
rt = sro->ro_rt;
- if (rt == NULL)
+ /*
+ * Don't cache route in pcb if this is a per-packet
+ * route
+ */
+ if (rt == NULL || (rt->rt_flags & RTF_PPACKET))
return;
inp->inp_rt = rt;
More information about the svn-src-user
mailing list