123198Smckusick /* 229157Smckusick * Copyright (c) 1982, 1986 Regents of the University of California. 3*32789Sbostic * All rights reserved. 423198Smckusick * 5*32789Sbostic * Redistribution and use in source and binary forms are permitted 6*32789Sbostic * provided that this notice is preserved and that due credit is given 7*32789Sbostic * to the University of California at Berkeley. The name of the University 8*32789Sbostic * may not be used to endorse or promote products derived from this 9*32789Sbostic * software without specific prior written permission. This software 10*32789Sbostic * is provided ``as is'' without express or implied warranty. 11*32789Sbostic * 12*32789Sbostic * @(#)tcpip.h 7.2 (Berkeley) 12/07/87 1323198Smckusick */ 145126Swnj 155126Swnj /* 165126Swnj * Tcp+ip header, after ip options removed. 175126Swnj */ 185126Swnj struct tcpiphdr { 195126Swnj struct ipovly ti_i; /* overlaid ip structure */ 205126Swnj struct tcphdr ti_t; /* tcp header */ 215126Swnj }; 225126Swnj #define ti_next ti_i.ih_next 235126Swnj #define ti_prev ti_i.ih_prev 245126Swnj #define ti_x1 ti_i.ih_x1 255126Swnj #define ti_pr ti_i.ih_pr 265126Swnj #define ti_len ti_i.ih_len 275126Swnj #define ti_src ti_i.ih_src 285126Swnj #define ti_dst ti_i.ih_dst 295126Swnj #define ti_sport ti_t.th_sport 305126Swnj #define ti_dport ti_t.th_dport 315126Swnj #define ti_seq ti_t.th_seq 325126Swnj #define ti_ack ti_t.th_ack 335126Swnj #define ti_x2 ti_t.th_x2 345126Swnj #define ti_off ti_t.th_off 355126Swnj #define ti_flags ti_t.th_flags 365126Swnj #define ti_win ti_t.th_win 375126Swnj #define ti_sum ti_t.th_sum 385126Swnj #define ti_urp ti_t.th_urp 39