Module Name: src Committed By: dyoung Date: Fri Aug 12 22:09:37 UTC 2011
Modified Files: src/sys/net: if.c Log Message: Define if_free() for ixg(4) to use. To generate a diff of this commit: cvs rdiff -u -r1.250 -r1.251 src/sys/net/if.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/net/if.c diff -u src/sys/net/if.c:1.250 src/sys/net/if.c:1.251 --- src/sys/net/if.c:1.250 Tue Jan 18 20:33:45 2011 +++ src/sys/net/if.c Fri Aug 12 22:09:36 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: if.c,v 1.250 2011/01/18 20:33:45 rmind Exp $ */ +/* $NetBSD: if.c,v 1.251 2011/08/12 22:09:36 dyoung Exp $ */ /*- * Copyright (c) 1999, 2000, 2001, 2008 The NetBSD Foundation, Inc. @@ -90,7 +90,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: if.c,v 1.250 2011/01/18 20:33:45 rmind Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if.c,v 1.251 2011/08/12 22:09:36 dyoung Exp $"); #include "opt_inet.h" @@ -249,6 +249,12 @@ } void +if_free(struct ifnet *ifp) +{ + free(ifp, M_DEVBUF); +} + +void if_initname(struct ifnet *ifp, const char *name, int unit) { (void)snprintf(ifp->if_xname, sizeof(ifp->if_xname),