xref: /csrg-svn/sys/netinet/tcpip.h (revision 34855)
1 /*
2  * Copyright (c) 1982, 1986 Regents of the University of California.
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms are permitted
6  * provided that the above copyright notice and this paragraph are
7  * duplicated in all such forms and that any documentation,
8  * advertising materials, and other materials related to such
9  * distribution and use acknowledge that the software was developed
10  * by the University of California, Berkeley.  The name of the
11  * University may not be used to endorse or promote products derived
12  * from this software without specific prior written permission.
13  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
14  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
15  * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
16  *
17  *	@(#)tcpip.h	7.3 (Berkeley) 06/29/88
18  */
19 
20 /*
21  * Tcp+ip header, after ip options removed.
22  */
23 struct tcpiphdr {
24 	struct 	ipovly ti_i;		/* overlaid ip structure */
25 	struct	tcphdr ti_t;		/* tcp header */
26 };
27 #define	ti_next		ti_i.ih_next
28 #define	ti_prev		ti_i.ih_prev
29 #define	ti_x1		ti_i.ih_x1
30 #define	ti_pr		ti_i.ih_pr
31 #define	ti_len		ti_i.ih_len
32 #define	ti_src		ti_i.ih_src
33 #define	ti_dst		ti_i.ih_dst
34 #define	ti_sport	ti_t.th_sport
35 #define	ti_dport	ti_t.th_dport
36 #define	ti_seq		ti_t.th_seq
37 #define	ti_ack		ti_t.th_ack
38 #define	ti_x2		ti_t.th_x2
39 #define	ti_off		ti_t.th_off
40 #define	ti_flags	ti_t.th_flags
41 #define	ti_win		ti_t.th_win
42 #define	ti_sum		ti_t.th_sum
43 #define	ti_urp		ti_t.th_urp
44