svn commit: r231009 - head/sys/net

Gleb Smirnoff glebius at FreeBSD.org
Sun Feb 5 08:31:15 UTC 2012


Author: glebius
Date: Sun Feb  5 08:31:15 2012
New Revision: 231009
URL: http://svn.freebsd.org/changeset/base/231009

Log:
  In ifa_init() initialize if_data.ifi_datalen. This would be
  required after upcoming changes from bz at .
  
  Discussed with:	bz

Modified:
  head/sys/net/if.c

Modified: head/sys/net/if.c
==============================================================================
--- head/sys/net/if.c	Sun Feb  5 07:19:00 2012	(r231008)
+++ head/sys/net/if.c	Sun Feb  5 08:31:15 2012	(r231009)
@@ -1416,6 +1416,7 @@ ifa_init(struct ifaddr *ifa)
 
 	mtx_init(&ifa->ifa_mtx, "ifaddr", NULL, MTX_DEF);
 	refcount_init(&ifa->ifa_refcnt, 1);
+	ifa->if_data.ifi_datalen = sizeof(ifa->if_data);
 }
 
 void


More information about the svn-src-all mailing list