xref: /titanic_50/usr/src/uts/common/netinet/tcpip.h (revision 7c478bd95313f5f23a4c958a745db2134aa03244)
1 /*
2  * Copyright (c) 1982, 1986 Regents of the University of California.
3  * All rights reserved.  The Berkeley software License Agreement
4  * specifies the terms and conditions for redistribution.
5  */
6 
7 /*
8  * Tcp+ip header, after ip options removed.
9  */
10 
11 #ifndef	_NETINET_TCPIP_H
12 #define	_NETINET_TCPIP_H
13 
14 #pragma ident	"%Z%%M%	%I%	%E% SMI"
15 /* tcpip.h 1.7 88/08/19 SMI; from UCB 7.1 6/5/85	*/
16 
17 #ifdef	__cplusplus
18 extern "C" {
19 #endif
20 
21 struct tcpiphdr {
22 	struct 	ipovly ti_i;		/* overlaid ip structure */
23 	struct	tcphdr ti_t;		/* tcp header */
24 };
25 #define	ti_next		ti_i.ih_next
26 #define	ti_prev		ti_i.ih_prev
27 #define	ti_x1		ti_i.ih_x1
28 #define	ti_pr		ti_i.ih_pr
29 #define	ti_len		ti_i.ih_len
30 #define	ti_src		ti_i.ih_src
31 #define	ti_dst		ti_i.ih_dst
32 #define	ti_sport	ti_t.th_sport
33 #define	ti_dport	ti_t.th_dport
34 #define	ti_seq		ti_t.th_seq
35 #define	ti_ack		ti_t.th_ack
36 #define	ti_x2		ti_t.th_x2
37 #define	ti_off		ti_t.th_off
38 #define	ti_flags	ti_t.th_flags
39 #define	ti_win		ti_t.th_win
40 #define	ti_sum		ti_t.th_sum
41 #define	ti_urp		ti_t.th_urp
42 
43 #ifdef	__cplusplus
44 }
45 #endif
46 
47 #endif	/* _NETINET_TCPIP_H */
48