svn commit: r184576 - user/kmacy/HEAD_fast_xmit/sys/netinet
Kip Macy
kmacy at FreeBSD.org
Sun Nov 2 19:18:30 PST 2008
Author: kmacy
Date: Mon Nov 3 03:18:29 2008
New Revision: 184576
URL: http://svn.freebsd.org/changeset/base/184576
Log:
Be more parsimonious about route cloning.
Modified:
user/kmacy/HEAD_fast_xmit/sys/netinet/if_ether.c
Modified: user/kmacy/HEAD_fast_xmit/sys/netinet/if_ether.c
==============================================================================
--- user/kmacy/HEAD_fast_xmit/sys/netinet/if_ether.c Mon Nov 3 03:17:56 2008 (r184575)
+++ user/kmacy/HEAD_fast_xmit/sys/netinet/if_ether.c Mon Nov 3 03:18:29 2008 (r184576)
@@ -419,7 +419,11 @@ arpresolve(struct ifnet *ifp, struct rte
* come from the local interface should have a ll entry.
* It may be incomplete but that's ok.
*/
- rt = arplookup(SIN(dst)->sin_addr.s_addr, 1, 0, fibnum);
+ /*
+ * Only create a cloned route if one doesn't exist for this
+ * address
+ */
+ rt = arplookup(SIN(dst)->sin_addr.s_addr, (rt != NULL), 0, fibnum);
if (rt == NULL) {
log(LOG_DEBUG,
"arpresolve: can't allocate route for %s\n",
More information about the svn-src-user
mailing list