summaryrefslogtreecommitdiffstats
path: root/sys/net/if_tunvar.h
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1999-06-19 18:42:31 +0000
committerphk <phk@FreeBSD.org>1999-06-19 18:42:31 +0000
commit1048fa73010ca9dfb0cfba83b166fcfa2ef994be (patch)
tree32836c1e0c0e6d5d181e3dd1260ec5097dfa0a32 /sys/net/if_tunvar.h
parentd99f3d7a9346a2099e09e6afbacee7bffacdbdaa (diff)
downloadFreeBSD-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/net/if_tunvar.h')
-rw-r--r--sys/net/if_tunvar.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/net/if_tunvar.h b/sys/net/if_tunvar.h
index 496c4fb..8a0e9b5 100644
--- a/sys/net/if_tunvar.h
+++ b/sys/net/if_tunvar.h
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: if_tunvar.h,v 1.3 1998/11/11 10:56:05 truckman Exp $
+ * $Id: if_tunvar.h,v 1.4 1999/03/24 21:20:12 des Exp $
*/
#ifndef _NET_IF_TUNVAR_H_
@@ -42,6 +42,7 @@ struct tun_softc {
#define TUN_READY (TUN_OPEN | TUN_INITED)
+ pid_t tun_pid; /* PID of process to open */
struct ifnet tun_if; /* the interface */
struct sigio *tun_sigio; /* information for async I/O */
struct selinfo tun_rsel; /* read select */
OpenPOWER on IntegriCloud