Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/net Add a if_dlt member, used so that userland can query...



details:   https://anonhg.NetBSD.org/src/rev/925c706d7675
branches:  trunk
changeset: 500787:925c706d7675
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Mon Dec 18 19:25:57 2000 +0000

description:
Add a if_dlt member, used so that userland can query the DLT_* of an
interface without having to first attach it to a bpfdesc.

diffstat:

 sys/net/if.h |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r c1ee7bf4ca01 -r 925c706d7675 sys/net/if.h
--- a/sys/net/if.h      Mon Dec 18 19:18:33 2000 +0000
+++ b/sys/net/if.h      Mon Dec 18 19:25:57 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if.h,v 1.58 2000/12/18 18:54:47 thorpej Exp $  */
+/*     $NetBSD: if.h,v 1.59 2000/12/18 19:25:57 thorpej Exp $  */
 
 /*-
  * Copyright (c) 1999, 2000 The NetBSD Foundation, Inc.
@@ -272,6 +272,7 @@
        u_int8_t *if_broadcastaddr;     /* linklevel broadcast bytestring */
        struct ifprefix *if_prefixlist; /* linked list of prefixes per if */
        void    *if_bridge;             /* bridge glue */
+       int     if_dlt;                 /* data link type (<net/dlt.h>) */
 };
 #define        if_mtu          if_data.ifi_mtu
 #define        if_type         if_data.ifi_type



Home | Main Index | Thread Index | Old Index