Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net Define if_free() for ixg(4) to use.
details: https://anonhg.NetBSD.org/src/rev/a69d8901de8a
branches: trunk
changeset: 768249:a69d8901de8a
user: dyoung <dyoung%NetBSD.org@localhost>
date: Fri Aug 12 22:09:36 2011 +0000
description:
Define if_free() for ixg(4) to use.
diffstat:
sys/net/if.c | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diffs (31 lines):
diff -r 90f6ca61ca40 -r a69d8901de8a sys/net/if.c
--- a/sys/net/if.c Fri Aug 12 22:09:17 2011 +0000
+++ b/sys/net/if.c Fri Aug 12 22:09:36 2011 +0000
@@ -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),
Home |
Main Index |
Thread Index |
Old Index