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