aboutsummaryrefslogtreecommitdiff
path: root/sys/net/if_tunvar.h
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>1999-06-19 18:42:31 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>1999-06-19 18:42:31 +0000
commit413dd0ba39a29341026a27f5f7dbf4358fbd79b0 (patch)
treeb8ab5bb68f09832f8ad644d757d330c471791bbc /sys/net/if_tunvar.h
parent13549ec01c20428c90215ad8b6af73cf981e58a2 (diff)
downloadsrc-413dd0ba39a29341026a27f5f7dbf4358fbd79b0.tar.gz
src-413dd0ba39a29341026a27f5f7dbf4358fbd79b0.zip
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
Notes
Notes: svn path=/head/; revision=48021
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 496c4fb7c97a..8a0e9b55d24b 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 */