1*0Sstevel@tonic-gate /* 2*0Sstevel@tonic-gate * Copyright (c) 1982, 1986 Regents of the University of California. 3*0Sstevel@tonic-gate * All rights reserved. The Berkeley software License Agreement 4*0Sstevel@tonic-gate * specifies the terms and conditions for redistribution. 5*0Sstevel@tonic-gate */ 6*0Sstevel@tonic-gate 7*0Sstevel@tonic-gate /* 8*0Sstevel@tonic-gate * Tcp+ip header, after ip options removed. 9*0Sstevel@tonic-gate */ 10*0Sstevel@tonic-gate 11*0Sstevel@tonic-gate #ifndef _NETINET_TCPIP_H 12*0Sstevel@tonic-gate #define _NETINET_TCPIP_H 13*0Sstevel@tonic-gate 14*0Sstevel@tonic-gate #pragma ident "%Z%%M% %I% %E% SMI" 15*0Sstevel@tonic-gate /* tcpip.h 1.7 88/08/19 SMI; from UCB 7.1 6/5/85 */ 16*0Sstevel@tonic-gate 17*0Sstevel@tonic-gate #ifdef __cplusplus 18*0Sstevel@tonic-gate extern "C" { 19*0Sstevel@tonic-gate #endif 20*0Sstevel@tonic-gate 21*0Sstevel@tonic-gate struct tcpiphdr { 22*0Sstevel@tonic-gate struct ipovly ti_i; /* overlaid ip structure */ 23*0Sstevel@tonic-gate struct tcphdr ti_t; /* tcp header */ 24*0Sstevel@tonic-gate }; 25*0Sstevel@tonic-gate #define ti_next ti_i.ih_next 26*0Sstevel@tonic-gate #define ti_prev ti_i.ih_prev 27*0Sstevel@tonic-gate #define ti_x1 ti_i.ih_x1 28*0Sstevel@tonic-gate #define ti_pr ti_i.ih_pr 29*0Sstevel@tonic-gate #define ti_len ti_i.ih_len 30*0Sstevel@tonic-gate #define ti_src ti_i.ih_src 31*0Sstevel@tonic-gate #define ti_dst ti_i.ih_dst 32*0Sstevel@tonic-gate #define ti_sport ti_t.th_sport 33*0Sstevel@tonic-gate #define ti_dport ti_t.th_dport 34*0Sstevel@tonic-gate #define ti_seq ti_t.th_seq 35*0Sstevel@tonic-gate #define ti_ack ti_t.th_ack 36*0Sstevel@tonic-gate #define ti_x2 ti_t.th_x2 37*0Sstevel@tonic-gate #define ti_off ti_t.th_off 38*0Sstevel@tonic-gate #define ti_flags ti_t.th_flags 39*0Sstevel@tonic-gate #define ti_win ti_t.th_win 40*0Sstevel@tonic-gate #define ti_sum ti_t.th_sum 41*0Sstevel@tonic-gate #define ti_urp ti_t.th_urp 42*0Sstevel@tonic-gate 43*0Sstevel@tonic-gate #ifdef __cplusplus 44*0Sstevel@tonic-gate } 45*0Sstevel@tonic-gate #endif 46*0Sstevel@tonic-gate 47*0Sstevel@tonic-gate #endif /* _NETINET_TCPIP_H */ 48