duplicate TIOCGPGRP for controller - minus the check for controlling terminal
[unix-history] / usr / src / sys / netinet / ip_var.h
index 81c8e3e..0ca62de 100644 (file)
@@ -3,13 +3,18 @@
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms are permitted
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms are permitted
- * provided that this notice is preserved and that due credit is given
- * to the University of California at 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'' without express or implied warranty.
+ * 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.
  *
  *
- *     @(#)ip_var.h    7.3 (Berkeley) %G%
+ *     @(#)ip_var.h    7.6 (Berkeley) %G%
  */
 
 /*
  */
 
 /*
@@ -46,11 +51,11 @@ struct ipq {
  * Note: ipf_next must be at same offset as ipq_next above
  */
 struct ipasfrag {
  * Note: ipf_next must be at same offset as ipq_next above
  */
 struct ipasfrag {
-#if ENDIAN == LITTLE
+#if BYTE_ORDER == LITTLE_ENDIAN 
        u_char  ip_hl:4,
                ip_v:4;
 #endif
        u_char  ip_hl:4,
                ip_v:4;
 #endif
-#if ENDIAN == BIG
+#if BYTE_ORDER == BIG_ENDIAN 
        u_char  ip_v:4,
                ip_hl:4;
 #endif
        u_char  ip_v:4,
                ip_hl:4;
 #endif
@@ -91,6 +96,14 @@ struct       ipstat {
        long    ips_forward;            /* packets forwarded */
        long    ips_cantforward;        /* packets rcvd for unreachable dest */
        long    ips_redirectsent;       /* packets forwarded on same net */
        long    ips_forward;            /* packets forwarded */
        long    ips_cantforward;        /* packets rcvd for unreachable dest */
        long    ips_redirectsent;       /* packets forwarded on same net */
+       long    ips_noproto;            /* unknown or unsupported protocol */
+       long    ips_delivered;          /* packets consumed here */
+       long    ips_localout;           /* total ip packets generated here */
+       long    ips_odropped;           /* lost packets due to nobufs, etc. */
+       long    ips_reassembled;        /* total packets reassembled ok */
+       long    ips_fragmented;         /* output packets fragmented ok */
+       long    ips_ofragments;         /* output fragments created */
+       long    ips_cantfrag;           /* don't fragment flag was set, etc. */
 };
 
 #ifdef KERNEL
 };
 
 #ifdef KERNEL