Commit | Line | Data |
---|---|---|
8ae0e4b4 | 1 | /* |
0880b18e | 2 | * Copyright (c) 1982, 1986 Regents of the University of California. |
2b6b6284 | 3 | * All rights reserved. |
8ae0e4b4 | 4 | * |
2b6b6284 KB |
5 | * Redistribution and use in source and binary forms are permitted |
6 | * provided that this notice is preserved and that due credit is given | |
7 | * to the University of California at Berkeley. The name of the University | |
8 | * may not be used to endorse or promote products derived from this | |
9 | * software without specific prior written permission. This software | |
10 | * is provided ``as is'' without express or implied warranty. | |
11 | * | |
12 | * @(#)tcpip.h 7.2 (Berkeley) %G% | |
8ae0e4b4 | 13 | */ |
88ba45d6 BJ |
14 | |
15 | /* | |
16 | * Tcp+ip header, after ip options removed. | |
17 | */ | |
18 | struct tcpiphdr { | |
19 | struct ipovly ti_i; /* overlaid ip structure */ | |
20 | struct tcphdr ti_t; /* tcp header */ | |
21 | }; | |
22 | #define ti_next ti_i.ih_next | |
23 | #define ti_prev ti_i.ih_prev | |
24 | #define ti_x1 ti_i.ih_x1 | |
25 | #define ti_pr ti_i.ih_pr | |
26 | #define ti_len ti_i.ih_len | |
27 | #define ti_src ti_i.ih_src | |
28 | #define ti_dst ti_i.ih_dst | |
29 | #define ti_sport ti_t.th_sport | |
30 | #define ti_dport ti_t.th_dport | |
31 | #define ti_seq ti_t.th_seq | |
32 | #define ti_ack ti_t.th_ack | |
33 | #define ti_x2 ti_t.th_x2 | |
34 | #define ti_off ti_t.th_off | |
35 | #define ti_flags ti_t.th_flags | |
36 | #define ti_win ti_t.th_win | |
37 | #define ti_sum ti_t.th_sum | |
38 | #define ti_urp ti_t.th_urp |