Main Page | Modules | Class List | Directories | File List | Class Members | File Members | Related Pages

TCPIP.H

Go to the documentation of this file.
00001 /*
00002  * Copyright (c) 1982, 1986, 1993
00003  *      The Regents of the University of California.  All rights reserved.
00004  *
00005  * Redistribution and use in source and binary forms, with or without
00006  * modification, are permitted provided that the following conditions
00007  * are met:
00008  * 1. Redistributions of source code must retain the above copyright
00009  *    notice, this list of conditions and the following disclaimer.
00010  * 2. Redistributions in binary form must reproduce the above copyright
00011  *    notice, this list of conditions and the following disclaimer in the
00012  *    documentation and/or other materials provided with the distribution.
00013  * 3. All advertising materials mentioning features or use of this software
00014  *    must display the following acknowledgement:
00015  *      This product includes software developed by the University of
00016  *      California, Berkeley and its contributors.
00017  * 4. Neither the name of the University nor the names of its contributors
00018  *    may be used to endorse or promote products derived from this software
00019  *    without specific prior written permission.
00020  *
00021  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
00022  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
00023  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
00024  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
00025  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
00026  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
00027  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
00028  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
00029  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
00030  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
00031  * SUCH DAMAGE.
00032  *
00033  *      @(#)tcpip.h     8.1 (Berkeley) 6/10/93
00034  */
00035 
00036 /*
00037  * Tcp+ip header, after ip options removed.
00038  */
00039 struct tcpiphdr {
00040         struct  ipovly ti_i;            /* overlaid ip structure */
00041         struct  tcphdr ti_t;            /* tcp header */
00042 };
00043 #define ti_next         ti_i.ih_next
00044 #define ti_prev         ti_i.ih_prev
00045 #define ti_x1           ti_i.ih_x1
00046 #define ti_pr           ti_i.ih_pr
00047 #define ti_len          ti_i.ih_len
00048 #define ti_src          ti_i.ih_src
00049 #define ti_dst          ti_i.ih_dst
00050 #define ti_sport        ti_t.th_sport
00051 #define ti_dport        ti_t.th_dport
00052 #define ti_seq          ti_t.th_seq
00053 #define ti_ack          ti_t.th_ack
00054 #define ti_x2           ti_t.th_x2
00055 #define ti_off          ti_t.th_off
00056 #define ti_flags        ti_t.th_flags
00057 #define ti_win          ti_t.th_win
00058 #define ti_sum          ti_t.th_sum
00059 #define ti_urp          ti_t.th_urp

Generated on Sun May 14 14:51:20 2006 by  doxygen 1.4.2