Date: Sat, 19 Jun 1999 11:42:33 -0700 (PDT) From: Poul-Henning Kamp <phk@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sbin/ifconfig ifconfig.c src/sys/net if.c if.h if_tun.c if_tunvar.h src/sys/sys sockio.h Message-ID: <199906191842.LAA06854@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
phk 1999/06/19 11:42:33 PDT
Modified files:
sbin/ifconfig ifconfig.c
sys/net if.c if.h if_tun.c if_tunvar.h
sys/sys sockio.h
Log:
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
Revision Changes Path
1.41 +6 -1 src/sbin/ifconfig/ifconfig.c
1.73 +6 -1 src/sys/net/if.c
1.54 +15 -1 src/sys/net/if.h
1.59 +11 -1 src/sys/net/if_tun.c
1.5 +2 -1 src/sys/net/if_tunvar.h
1.12 +3 -1 src/sys/sys/sockio.h
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199906191842.LAA06854>
