xref: /illumos-gate/usr/src/uts/common/netinet/tcpip.h (revision 2d6eb4a5)
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 /* tcpip.h 1.7 88/08/19 SMI; from UCB 7.1 6/5/85	*/
15*7c478bd9Sstevel@tonic-gate 
16*7c478bd9Sstevel@tonic-gate #ifdef	__cplusplus
17*7c478bd9Sstevel@tonic-gate extern "C" {
18*7c478bd9Sstevel@tonic-gate #endif
19*7c478bd9Sstevel@tonic-gate 
20*7c478bd9Sstevel@tonic-gate struct tcpiphdr {
21*7c478bd9Sstevel@tonic-gate 	struct 	ipovly ti_i;		/* overlaid ip structure */
22*7c478bd9Sstevel@tonic-gate 	struct	tcphdr ti_t;		/* tcp header */
23*7c478bd9Sstevel@tonic-gate };
24*7c478bd9Sstevel@tonic-gate #define	ti_next		ti_i.ih_next
25*7c478bd9Sstevel@tonic-gate #define	ti_prev		ti_i.ih_prev
26*7c478bd9Sstevel@tonic-gate #define	ti_x1		ti_i.ih_x1
27*7c478bd9Sstevel@tonic-gate #define	ti_pr		ti_i.ih_pr
28*7c478bd9Sstevel@tonic-gate #define	ti_len		ti_i.ih_len
29*7c478bd9Sstevel@tonic-gate #define	ti_src		ti_i.ih_src
30*7c478bd9Sstevel@tonic-gate #define	ti_dst		ti_i.ih_dst
31*7c478bd9Sstevel@tonic-gate #define	ti_sport	ti_t.th_sport
32*7c478bd9Sstevel@tonic-gate #define	ti_dport	ti_t.th_dport
33*7c478bd9Sstevel@tonic-gate #define	ti_seq		ti_t.th_seq
34*7c478bd9Sstevel@tonic-gate #define	ti_ack		ti_t.th_ack
35*7c478bd9Sstevel@tonic-gate #define	ti_x2		ti_t.th_x2
36*7c478bd9Sstevel@tonic-gate #define	ti_off		ti_t.th_off
37*7c478bd9Sstevel@tonic-gate #define	ti_flags	ti_t.th_flags
38*7c478bd9Sstevel@tonic-gate #define	ti_win		ti_t.th_win
39*7c478bd9Sstevel@tonic-gate #define	ti_sum		ti_t.th_sum
40*7c478bd9Sstevel@tonic-gate #define	ti_urp		ti_t.th_urp
41*7c478bd9Sstevel@tonic-gate 
42*7c478bd9Sstevel@tonic-gate #ifdef	__cplusplus
43*7c478bd9Sstevel@tonic-gate }
44*7c478bd9Sstevel@tonic-gate #endif
45*7c478bd9Sstevel@tonic-gate 
46*7c478bd9Sstevel@tonic-gate #endif	/* _NETINET_TCPIP_H */
47