Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net Introduce IFM_GENERIC.
details: https://anonhg.NetBSD.org/src/rev/49bad3de52f8
branches: trunk
changeset: 347740:49bad3de52f8
user: roy <roy%NetBSD.org@localhost>
date: Wed Sep 14 11:43:08 2016 +0000
description:
Introduce IFM_GENERIC.
This allows use of the media interface, but without media as such.
It's sole purpose is to facilitate the reporting of the link status.
diffstat:
sys/net/if_media.h | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diffs (31 lines):
diff -r ed31d76d1f7c -r 49bad3de52f8 sys/net/if_media.h
--- a/sys/net/if_media.h Wed Sep 14 10:58:38 2016 +0000
+++ b/sys/net/if_media.h Wed Sep 14 11:43:08 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_media.h,v 1.56 2012/10/25 10:59:43 msaitoh Exp $ */
+/* $NetBSD: if_media.h,v 1.57 2016/09/14 11:43:08 roy Exp $ */
/*-
* Copyright (c) 1998, 2000, 2001 The NetBSD Foundation, Inc.
@@ -157,6 +157,11 @@
*/
/*
+ * Generic, only used for link status reporting.
+ */
+#define IFM_GENERIC 0x00000000
+
+/*
* Ethernet
*/
#define IFM_ETHER 0x00000020
@@ -614,6 +619,9 @@
(ifms)->ifms_string[((ifms)->ifms_bit & (bit)) ? 1 : 0]
#define IFM_STATUS_DESCRIPTIONS { \
+ { IFM_GENERIC, IFM_AVALID, IFM_ACTIVE, \
+ { "no network", "active" } }, \
+ \
{ IFM_ETHER, IFM_AVALID, IFM_ACTIVE, \
{ "no carrier", "active" } }, \
\
Home |
Main Index |
Thread Index |
Old Index