dst and gateway sockaddr's allocated separately from rtentry;
[unix-history] / usr / src / sys / net / if.h
index 13c1ff3..f60ff79 100644 (file)
@@ -4,7 +4,7 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)if.h        7.9 (Berkeley) %G%
+ *     @(#)if.h        7.11 (Berkeley) %G%
  */
 
 /*
  */
 
 /*
@@ -89,6 +89,7 @@ struct ifnet {
        int     if_iqdrops;             /* dropped on input, this interface */
        int     if_noproto;             /* destined for unsupported protocol */
        int     if_baudrate;            /* linespeed */
        int     if_iqdrops;             /* dropped on input, this interface */
        int     if_noproto;             /* destined for unsupported protocol */
        int     if_baudrate;            /* linespeed */
+        int    if_pcount;              /* number of promiscuous listeners */
 };
 
 #define        IFF_UP          0x1             /* interface is up */
 };
 
 #define        IFF_UP          0x1             /* interface is up */
@@ -106,7 +107,8 @@ struct ifnet {
 #define        IFF_SIMPLEX     0x800           /* can't hear own transmissions */
 
 /* flags set internally only: */
 #define        IFF_SIMPLEX     0x800           /* can't hear own transmissions */
 
 /* flags set internally only: */
-#define        IFF_CANTCHANGE  (IFF_BROADCAST|IFF_POINTOPOINT|IFF_RUNNING|IFF_OACTIVE)
+#define        IFF_CANTCHANGE \
+       (IFF_BROADCAST|IFF_POINTOPOINT|IFF_RUNNING|IFF_OACTIVE|IFF_SIMPLEX)
 
 /*
  * Output queues (ifp->if_snd) and internetwork datagram level (pup level 1)
 
 /*
  * Output queues (ifp->if_snd) and internetwork datagram level (pup level 1)