diff options
author | phk <phk@FreeBSD.org> | 1999-06-19 18:42:31 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1999-06-19 18:42:31 +0000 |
commit | 1048fa73010ca9dfb0cfba83b166fcfa2ef994be (patch) | |
tree | 32836c1e0c0e6d5d181e3dd1260ec5097dfa0a32 /sys/sys/sockio.h | |
parent | d99f3d7a9346a2099e09e6afbacee7bffacdbdaa (diff) | |
download | FreeBSD-src-1048fa73010ca9dfb0cfba83b166fcfa2ef994be.zip FreeBSD-src-1048fa73010ca9dfb0cfba83b166fcfa2ef994be.tar.gz |
Add a new interface ioctl, to return "aux status".
This is inteded for to allow ifconfig to print various unstructured
information from an interface.
The data is returned from the kernel in ASCII form, see the comment in
if.h for some technicalities.
Canonical cut&paste example to be found in if_tun.c
Initial use:
Now tun* interfaces tell the PID of the process which opened them.
Future uses could be (volounteers welcome!):
Have ppp/slip interfaces tell which tty they use.
Make sync interfaces return their media state: red/yellow/blue
alarm, timeslot assignment and so on.
Make ethernets warn about missing heartbeats and/or cables
Diffstat (limited to 'sys/sys/sockio.h')
-rw-r--r-- | sys/sys/sockio.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/sys/sockio.h b/sys/sys/sockio.h index 24ce7f6..36f0c2e 100644 --- a/sys/sys/sockio.h +++ b/sys/sys/sockio.h @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)sockio.h 8.1 (Berkeley) 3/28/94 - * $Id: sockio.h,v 1.10 1997/05/03 21:05:03 peter Exp $ + * $Id: sockio.h,v 1.11 1997/10/07 07:39:40 joerg Exp $ */ #ifndef _SYS_SOCKIO_H_ @@ -85,4 +85,6 @@ #define SIOCSIFGENERIC _IOW('i', 57, struct ifreq) /* generic IF set op */ #define SIOCGIFGENERIC _IOWR('i', 58, struct ifreq) /* generic IF get op */ +#define SIOCGIFSTATUS _IOWR('i', 59, struct ifstat) /* get IF status */ + #endif /* !_SYS_SOCKIO_H_ */ |