Source-Changes-HG archive

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

[src/netbsd-1-6]: src/sys/net Pull up revision 1.76 (requested by martin in t...



details:   https://anonhg.NetBSD.org/src/rev/a02d90637eb7
branches:  netbsd-1-6
changeset: 529199:a02d90637eb7
user:      tron <tron%NetBSD.org@localhost>
date:      Fri Nov 01 10:56:03 2002 +0000

description:
Pull up revision 1.76 (requested by martin in ticket #32):
Add SIOCGIFDATA and SIOCZIFDATA ioctl's to get interface data.  (the Z
variant also zeroes the counters after copying them).  In ifunit, add
support for dealing all numeric ifname by treating them as an ifindex
which is used to look up the interface.

diffstat:

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

diffs (21 lines):

diff -r d881698e2b76 -r a02d90637eb7 sys/net/if.h
--- a/sys/net/if.h      Fri Nov 01 10:55:45 2002 +0000
+++ b/sys/net/if.h      Fri Nov 01 10:56:03 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if.h,v 1.75 2002/03/17 10:21:42 simonb Exp $   */
+/*     $NetBSD: if.h,v 1.75.6.1 2002/11/01 10:56:03 tron Exp $ */
 
 /*-
  * Copyright (c) 1999, 2000, 2001 The NetBSD Foundation, Inc.
@@ -543,6 +543,11 @@
        struct  sockaddr ifra_mask;
 };
 
+struct ifdatareq {
+       char    ifdr_name[IFNAMSIZ];            /* if name, e.g. "en0" */
+       struct  if_data ifdr_data;
+};
+
 struct ifmediareq {
        char    ifm_name[IFNAMSIZ];             /* if name, e.g. "en0" */
        int     ifm_current;                    /* current media options */



Home | Main Index | Thread Index | Old Index