date and time created 81/11/18 16:51:57 by wnj
authorBill Joy <wnj@ucbvax.Berkeley.EDU>
Thu, 19 Nov 1981 08:51:57 +0000 (00:51 -0800)
committerBill Joy <wnj@ucbvax.Berkeley.EDU>
Thu, 19 Nov 1981 08:51:57 +0000 (00:51 -0800)
SCCS-vsn: sys/net/if.h 4.1

usr/src/sys/net/if.h [new file with mode: 0644]

diff --git a/usr/src/sys/net/if.h b/usr/src/sys/net/if.h
new file mode 100644 (file)
index 0000000..de55197
--- /dev/null
@@ -0,0 +1,32 @@
+/*     if.h    4.1     81/11/18        */
+
+/*
+ * Structure defining a network interface.
+ *
+ * (Would like to call this struct ``if'', but C isn't PL/1.)
+ */
+struct ifnet {
+       short   if_unit;                /* sub-unit for lower level driver */
+       short   if_flags;               /* state flags */
+       short   if_mtu;                 /* maximum transmission unit */
+       short   if_net;                 /* network number of interface */
+       struct  in_addr if_addr;        /* internet address of interface */
+       struct ifbuf {
+               short   ib_mbcnt;       /* mbufs on chain */
+               short   ib_mbhiwat;     /* mbufs permitted on chain */
+               struct  mbuf *ib_hd;    /* head of chain */
+               struct  mbuf *ib_tl;    /* tail of chain */
+       } if_snd, if_rcv;
+       struct ifsw {
+               int     (*if_output)();         /* output routine */
+               int     (*if_ubareset)();       /* uba reset routine */
+       } *if_sw;
+};
+
+/* bits in if_flags */
+#define        IF_OACTIVE      1               /* output in progress */
+
+#ifdef KERNEL
+struct ifnet *ifnet;
+struct ifnet *if_ifwithaddr(), *if_ifonnetof();
+#endif