diff options
author | Poul-Henning Kamp <phk@FreeBSD.org> | 1999-06-19 18:42:31 +0000 |
---|---|---|
committer | Poul-Henning Kamp <phk@FreeBSD.org> | 1999-06-19 18:42:31 +0000 |
commit | 413dd0ba39a29341026a27f5f7dbf4358fbd79b0 (patch) | |
tree | b8ab5bb68f09832f8ad644d757d330c471791bbc /sys/net/if.h | |
parent | 13549ec01c20428c90215ad8b6af73cf981e58a2 (diff) | |
download | src-413dd0ba39a29341026a27f5f7dbf4358fbd79b0.tar.gz src-413dd0ba39a29341026a27f5f7dbf4358fbd79b0.zip |
Notes
Diffstat (limited to 'sys/net/if.h')
-rw-r--r-- | sys/net/if.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/sys/net/if.h b/sys/net/if.h index a639bc21189f..13048b06d469 100644 --- a/sys/net/if.h +++ b/sys/net/if.h @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)if.h 8.1 (Berkeley) 6/10/93 - * $Id: if.h,v 1.52 1999/05/08 07:00:04 phk Exp $ + * $Id: if.h,v 1.53 1999/06/06 09:17:51 phk Exp $ */ #ifndef _NET_IF_H_ @@ -197,6 +197,20 @@ struct ifmediareq { int ifm_count; /* # entries in ifm_ulist array */ int *ifm_ulist; /* media words */ }; + +/* + * Structure used to retrieve aux status data from interfaces. + * kernel suppliers to this interface should respect the formatting + * needed by ifconfig(8): each line starts with a TAB and ends with + * a newline. The canonical example to copy&past is in if_tun.c + */ + +#define IFSTATMAX 800 /* 10 lines of text */ +struct ifstat { + char ifs_name[IFNAMSIZ]; /* if name, e.g. "en0" */ + char ascii[IFSTATMAX+1]; +}; + /* * Structure used in SIOCGIFCONF request. * Used to retrieve interface configuration |