Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net Add an "ifr_dlt" alias for the union in struct ifreq.
details: https://anonhg.NetBSD.org/src/rev/4c7414d24cbb
branches: trunk
changeset: 500804:4c7414d24cbb
user: thorpej <thorpej%NetBSD.org@localhost>
date: Mon Dec 18 21:03:34 2000 +0000
description:
Add an "ifr_dlt" alias for the union in struct ifreq.
diffstat:
sys/net/if.h | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (25 lines):
diff -r d12f41d5499c -r 4c7414d24cbb sys/net/if.h
--- a/sys/net/if.h Mon Dec 18 20:58:41 2000 +0000
+++ b/sys/net/if.h Mon Dec 18 21:03:34 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if.h,v 1.60 2000/12/18 20:58:41 thorpej Exp $ */
+/* $NetBSD: if.h,v 1.61 2000/12/18 21:03:34 thorpej Exp $ */
/*-
* Copyright (c) 1999, 2000 The NetBSD Foundation, Inc.
@@ -492,6 +492,7 @@
short ifru_flags;
int ifru_metric;
int ifru_mtu;
+ int ifru_dlt;
u_int ifru_value;
caddr_t ifru_data;
} ifr_ifru;
@@ -501,6 +502,7 @@
#define ifr_flags ifr_ifru.ifru_flags /* flags */
#define ifr_metric ifr_ifru.ifru_metric /* metric */
#define ifr_mtu ifr_ifru.ifru_mtu /* mtu */
+#define ifr_dlt ifr_ifru.ifru_dlt /* data link type (DLT_*) */
#define ifr_value ifr_ifru.ifru_value /* generic value */
#define ifr_media ifr_ifru.ifru_metric /* media options (overload) */
#define ifr_data ifr_ifru.ifru_data /* for use by interface */
Home |
Main Index |
Thread Index |
Old Index