netbroadcast should always be all-ones
[unix-history] / usr / src / sys / netinet / ip_var.h
index 2383142..6fd0171 100644 (file)
@@ -1,9 +1,15 @@
 /*
 /*
- * Copyright (c) 1982 Regents of the University of California.
- * All rights reserved.  The Berkeley software License Agreement
- * specifies the terms and conditions for redistribution.
+ * Copyright (c) 1982, 1986 Regents of the University of California.
+ * All rights reserved.
  *
  *
- *     @(#)ip_var.h    6.5 (Berkeley) %G%
+ * 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.
+ *
+ *     @(#)ip_var.h    7.4 (Berkeley) %G%
  */
 
 /*
  */
 
 /*
@@ -40,9 +46,13 @@ 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 {
-#ifdef vax
+#if BYTE_ORDER == LITTLE_ENDIAN 
        u_char  ip_hl:4,
                ip_v:4;
        u_char  ip_hl:4,
                ip_v:4;
+#endif
+#if BYTE_ORDER == BIG_ENDIAN 
+       u_char  ip_v:4,
+               ip_hl:4;
 #endif
        u_char  ipf_mff;                /* copied from (ip_off&IP_MF) */
        short   ip_len;
 #endif
        u_char  ipf_mff;                /* copied from (ip_off&IP_MF) */
        short   ip_len;