xref: /original-bsd/sys/netinet/tcpip.h (revision e46fd6c1)
1 /*
2  * Copyright (c) 1982, 1986, 1993
3  *	The Regents of the University of California.  All rights reserved.
4  *
5  * %sccs.include.redist.c%
6  *
7  *	@(#)tcpip.h	8.1 (Berkeley) 06/10/93
8  */
9 
10 /*
11  * Tcp+ip header, after ip options removed.
12  */
13 struct tcpiphdr {
14 	struct 	ipovly ti_i;		/* overlaid ip structure */
15 	struct	tcphdr ti_t;		/* tcp header */
16 };
17 #define	ti_next		ti_i.ih_next
18 #define	ti_prev		ti_i.ih_prev
19 #define	ti_x1		ti_i.ih_x1
20 #define	ti_pr		ti_i.ih_pr
21 #define	ti_len		ti_i.ih_len
22 #define	ti_src		ti_i.ih_src
23 #define	ti_dst		ti_i.ih_dst
24 #define	ti_sport	ti_t.th_sport
25 #define	ti_dport	ti_t.th_dport
26 #define	ti_seq		ti_t.th_seq
27 #define	ti_ack		ti_t.th_ack
28 #define	ti_x2		ti_t.th_x2
29 #define	ti_off		ti_t.th_off
30 #define	ti_flags	ti_t.th_flags
31 #define	ti_win		ti_t.th_win
32 #define	ti_sum		ti_t.th_sum
33 #define	ti_urp		ti_t.th_urp
34