handle routing redirects, albeit simplisticly
[unix-history] / usr / src / sys / net / if.h
index a166d53..fd639ff 100644 (file)
@@ -1,4 +1,4 @@
-/*     if.h    4.13    82/05/24        */
+/*     if.h    4.16    82/10/31        */
 
 /*
  * Structures defining a network interface, providing a packet
 
 /*
  * Structures defining a network interface, providing a packet
  * Structure defining a queue for a network interface.
  *
  * (Would like to call this struct ``if'', but C isn't PL/1.)
  * Structure defining a queue for a network interface.
  *
  * (Would like to call this struct ``if'', but C isn't PL/1.)
+ *
+ * EVENTUALLY PURGE if_net AND if_host FROM STRUCTURE
  */
 struct ifnet {
        char    *if_name;               /* name, e.g. ``en'' or ``lo'' */
        short   if_unit;                /* sub-unit for lower level driver */
        short   if_mtu;                 /* maximum transmission unit */
  */
 struct ifnet {
        char    *if_name;               /* name, e.g. ``en'' or ``lo'' */
        short   if_unit;                /* sub-unit for lower level driver */
        short   if_mtu;                 /* maximum transmission unit */
-       short   if_net;                 /* network number of interface */
+       int     if_net;                 /* network number of interface */
        short   if_flags;               /* up/down, broadcast, etc. */
        short   if_flags;               /* up/down, broadcast, etc. */
+       short   if_timer;               /* time 'til if_watchdog called */
        int     if_host[2];             /* local net host number */
        struct  sockaddr if_addr;       /* address of interface */
        union {
        int     if_host[2];             /* local net host number */
        struct  sockaddr if_addr;       /* address of interface */
        union {
@@ -54,7 +57,8 @@ struct ifnet {
 /* procedure handles */
        int     (*if_init)();           /* init routine */
        int     (*if_output)();         /* output routine */
 /* procedure handles */
        int     (*if_init)();           /* init routine */
        int     (*if_output)();         /* output routine */
-       int     (*if_ubareset)();       /* uba reset routine */
+       int     (*if_reset)();          /* bus reset routine */
+       int     (*if_watchdog)();       /* timer routine */
 /* generic interface statistics */
        int     if_ipackets;            /* packets received on interface */
        int     if_ierrors;             /* input errors on interface */
 /* generic interface statistics */
        int     if_ipackets;            /* packets received on interface */
        int     if_ierrors;             /* input errors on interface */
@@ -106,6 +110,7 @@ struct ifnet {
 }
 
 #define        IFQ_MAXLEN      50
 }
 
 #define        IFQ_MAXLEN      50
+#define        IFNET_SLOWHZ    1               /* granularity is 1 second */
 
 #ifdef KERNEL
 #ifdef INET
 
 #ifdef KERNEL
 #ifdef INET