SCCS-vsn: sys/netinet/ip.h 1.11
SCCS-vsn: sys/netinet/ip_var.h 4.7
SCCS-vsn: sys/netinet/tcp.h 1.23
-/* ip.h 1.10 82/03/30 */
+/* ip.h 1.11 82/12/28 */
/*
* Definitions for internet protocol version 4.
/*
* Definitions for internet protocol version 4.
* against negative integers quite easily, and fail in subtle ways.
*/
struct ip {
* against negative integers quite easily, and fail in subtle ways.
*/
struct ip {
u_char ip_hl:4, /* header length */
ip_v:4; /* version */
u_char ip_hl:4, /* header length */
ip_v:4; /* version */
+#endif
+#ifdef sun
+ u_char ip_v:4, /* version */
+ ip_hl:4; /* header length */
+#endif
u_char ip_tos; /* type of service */
short ip_len; /* total length */
u_short ip_id; /* identification */
u_char ip_tos; /* type of service */
short ip_len; /* total length */
u_short ip_id; /* identification */
-/* ip_var.h 4.6 82/11/13 */
+/* ip_var.h 4.7 82/12/28 */
/*
* Overlay for ip header used by other protocols (tcp, udp).
/*
* Overlay for ip header used by other protocols (tcp, udp).
* 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 {
+#endif
+#ifdef sun
+ u_char ip_v:4,
+ ip_hl:4;
+#endif
u_char ipf_mff; /* copied from (ip_off&IP_MF) */
short ip_len;
u_short ip_id;
u_char ipf_mff; /* copied from (ip_off&IP_MF) */
short ip_len;
u_short ip_id;
-/* tcp.h 1.22 82/12/20 */
+/* tcp.h 1.23 82/12/28 */
typedef u_long tcp_seq;
/*
typedef u_long tcp_seq;
/*
u_short th_dport; /* destination port */
tcp_seq th_seq; /* sequence number */
tcp_seq th_ack; /* acknowledgement number */
u_short th_dport; /* destination port */
tcp_seq th_seq; /* sequence number */
tcp_seq th_ack; /* acknowledgement number */
- u_char
- th_x2:4, /* (unused) */
+#ifdef vax
+ u_char th_x2:4, /* (unused) */
th_off:4; /* data offset */
th_off:4; /* data offset */
+#endif
+#ifdef sun
+ u_char th_off:4, /* data offset */
+ th_x2:4; /* (unused) */
+#endif
u_char th_flags;
#define TH_FIN 0x01
#define TH_SYN 0x02
u_char th_flags;
#define TH_FIN 0x01
#define TH_SYN 0x02