svn commit: r276619 - projects/routing/sys/netinet

Alexander V. Chernikov melifaro at FreeBSD.org
Sat Jan 3 13:41:54 UTC 2015


Author: melifaro
Date: Sat Jan  3 13:41:53 2015
New Revision: 276619
URL: https://svnweb.freebsd.org/changeset/base/276619

Log:
  Finish r275628: remove remaining 'base' references.

Modified:
  projects/routing/sys/netinet/in.c

Modified: projects/routing/sys/netinet/in.c
==============================================================================
--- projects/routing/sys/netinet/in.c	Sat Jan  3 13:36:56 2015	(r276618)
+++ projects/routing/sys/netinet/in.c	Sat Jan  3 13:41:53 2015	(r276619)
@@ -1012,20 +1012,19 @@ in_lltable_new(struct in_addr addr4, u_i
 	if (lle == NULL)		/* NB: caller generates msg */
 		return NULL;
 
-	lle->base.r_l3addr.addr4 = addr4;
+	lle->r_l3addr.addr4 = addr4;
 
 	/*
 	 * For IPv4 this will trigger "arpresolve" to generate
 	 * an ARP request.
 	 */
-	lle->base.la_expire = time_uptime; /* mark expired */
-	lle->base.lle_refcnt = 1;
-	lle->base.lle_free = in_lltable_free;
-	LLE_LOCK_INIT(&lle->base);
-	callout_init_rw(&lle->base.la_timer, &lle->base.lle_lock,
-	    CALLOUT_RETURNUNLOCKED);
+	lle->la_expire = time_uptime; /* mark expired */
+	lle->lle_refcnt = 1;
+	lle->lle_free = in_lltable_free;
+	LLE_LOCK_INIT(lle);
+	callout_init_rw(&lle->la_timer, &lle->lle_lock, CALLOUT_RETURNUNLOCKED);
 
-	return (&lle->base);
+	return (lle);
 }
 
 #define IN_ARE_MASKED_ADDR_EQUAL(d, a, m)	(			\


More information about the svn-src-projects mailing list