xref: /csrg-svn/sys/netinet/tcpip.h (revision 29157)
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  *	@(#)tcpip.h	7.1 (Berkeley) 06/05/86
7  */
8 
9 /*
10  * Tcp+ip header, after ip options removed.
11  */
12 struct tcpiphdr {
13 	struct 	ipovly ti_i;		/* overlaid ip structure */
14 	struct	tcphdr ti_t;		/* tcp header */
15 };
16 #define	ti_next		ti_i.ih_next
17 #define	ti_prev		ti_i.ih_prev
18 #define	ti_x1		ti_i.ih_x1
19 #define	ti_pr		ti_i.ih_pr
20 #define	ti_len		ti_i.ih_len
21 #define	ti_src		ti_i.ih_src
22 #define	ti_dst		ti_i.ih_dst
23 #define	ti_sport	ti_t.th_sport
24 #define	ti_dport	ti_t.th_dport
25 #define	ti_seq		ti_t.th_seq
26 #define	ti_ack		ti_t.th_ack
27 #define	ti_x2		ti_t.th_x2
28 #define	ti_off		ti_t.th_off
29 #define	ti_flags	ti_t.th_flags
30 #define	ti_win		ti_t.th_win
31 #define	ti_sum		ti_t.th_sum
32 #define	ti_urp		ti_t.th_urp
33