dst and gateway sockaddr's allocated separately from rtentry;
[unix-history] / usr / src / sys / net / if.h
index b7b1e7b..f60ff79 100644 (file)
@@ -2,19 +2,9 @@
  * Copyright (c) 1982, 1986, 1989 Regents of the University of California.
  * All rights reserved.
  *
  * Copyright (c) 1982, 1986, 1989 Regents of the University of California.
  * All rights reserved.
  *
- * Redistribution and use in source and binary forms are permitted
- * provided that the above copyright notice and this paragraph are
- * duplicated in all such forms and that any documentation,
- * advertising materials, and other materials related to such
- * distribution and use acknowledge that the software was developed
- * by the University of California, Berkeley.  The name of the
- * University may not be used to endorse or promote products derived
- * from this software without specific prior written permission.
- * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
- * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
- * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+ * %sccs.include.redist.c%
  *
  *
- *     @(#)if.h        7.8 (Berkeley) %G%
+ *     @(#)if.h        7.11 (Berkeley) %G%
  */
 
 /*
  */
 
 /*
@@ -99,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 */
@@ -116,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)