Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/bouyer-socketcan]: src/sys/netcan Call if_alloc_sadl() for the interface...
details: https://anonhg.NetBSD.org/src/rev/e46509c26804
branches: bouyer-socketcan
changeset: 820888:e46509c26804
user: bouyer <bouyer%NetBSD.org@localhost>
date: Wed Apr 19 17:52:37 2017 +0000
description:
Call if_alloc_sadl() for the interface, so that getifaddrs() will find
them.
diffstat:
sys/netcan/can.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r aec798668a69 -r e46509c26804 sys/netcan/can.c
--- a/sys/netcan/can.c Wed Apr 19 17:51:16 2017 +0000
+++ b/sys/netcan/can.c Wed Apr 19 17:52:37 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: can.c,v 1.1.2.8 2017/04/18 20:37:38 bouyer Exp $ */
+/* $NetBSD: can.c,v 1.1.2.9 2017/04/19 17:52:37 bouyer Exp $ */
/*-
* Copyright (c) 2003, 2017 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: can.c,v 1.1.2.8 2017/04/18 20:37:38 bouyer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: can.c,v 1.1.2.9 2017/04/19 17:52:37 bouyer Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -200,6 +200,7 @@
ifp->if_dlt = DLT_CAN_SOCKETCAN;
ifp->if_output = NULL; /* unused */
IFQ_SET_READY(&ifp->if_snd);
+ if_alloc_sadl(ifp);
}
void
Home |
Main Index |
Thread Index |
Old Index