xref: /f-stack/tools/compat/include/netinet/tcpip.h (revision d4a07e70)
11eaf0ac3Slogwang /*-
2*d4a07e70Sfengbojiang  * SPDX-License-Identifier: BSD-3-Clause
3*d4a07e70Sfengbojiang  *
41eaf0ac3Slogwang  * Copyright (c) 1982, 1986, 1993
51eaf0ac3Slogwang  *	The Regents of the University of California.  All rights reserved.
61eaf0ac3Slogwang  *
71eaf0ac3Slogwang  * Redistribution and use in source and binary forms, with or without
81eaf0ac3Slogwang  * modification, are permitted provided that the following conditions
91eaf0ac3Slogwang  * are met:
101eaf0ac3Slogwang  * 1. Redistributions of source code must retain the above copyright
111eaf0ac3Slogwang  *    notice, this list of conditions and the following disclaimer.
121eaf0ac3Slogwang  * 2. Redistributions in binary form must reproduce the above copyright
131eaf0ac3Slogwang  *    notice, this list of conditions and the following disclaimer in the
141eaf0ac3Slogwang  *    documentation and/or other materials provided with the distribution.
15*d4a07e70Sfengbojiang  * 3. Neither the name of the University nor the names of its contributors
161eaf0ac3Slogwang  *    may be used to endorse or promote products derived from this software
171eaf0ac3Slogwang  *    without specific prior written permission.
181eaf0ac3Slogwang  *
191eaf0ac3Slogwang  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
201eaf0ac3Slogwang  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
211eaf0ac3Slogwang  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
221eaf0ac3Slogwang  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
231eaf0ac3Slogwang  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
241eaf0ac3Slogwang  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
251eaf0ac3Slogwang  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
261eaf0ac3Slogwang  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
271eaf0ac3Slogwang  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
281eaf0ac3Slogwang  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
291eaf0ac3Slogwang  * SUCH DAMAGE.
301eaf0ac3Slogwang  *
311eaf0ac3Slogwang  *	@(#)tcpip.h	8.1 (Berkeley) 6/10/93
321eaf0ac3Slogwang  * $FreeBSD$
331eaf0ac3Slogwang  */
341eaf0ac3Slogwang 
351eaf0ac3Slogwang #ifndef _NETINET_TCPIP_H_
361eaf0ac3Slogwang #define _NETINET_TCPIP_H_
371eaf0ac3Slogwang 
381eaf0ac3Slogwang /*
391eaf0ac3Slogwang  * Tcp+ip header, after ip options removed.
401eaf0ac3Slogwang  */
411eaf0ac3Slogwang struct tcpiphdr {
421eaf0ac3Slogwang 	struct	ipovly ti_i;		/* overlaid ip structure */
431eaf0ac3Slogwang 	struct	tcphdr ti_t;		/* tcp header */
441eaf0ac3Slogwang };
451eaf0ac3Slogwang #define	ti_x1		ti_i.ih_x1
461eaf0ac3Slogwang #define	ti_pr		ti_i.ih_pr
471eaf0ac3Slogwang #define	ti_len		ti_i.ih_len
481eaf0ac3Slogwang #define	ti_src		ti_i.ih_src
491eaf0ac3Slogwang #define	ti_dst		ti_i.ih_dst
501eaf0ac3Slogwang #define	ti_sport	ti_t.th_sport
511eaf0ac3Slogwang #define	ti_dport	ti_t.th_dport
521eaf0ac3Slogwang #define	ti_seq		ti_t.th_seq
531eaf0ac3Slogwang #define	ti_ack		ti_t.th_ack
541eaf0ac3Slogwang #define	ti_x2		ti_t.th_x2
551eaf0ac3Slogwang #define	ti_off		ti_t.th_off
561eaf0ac3Slogwang #define	ti_flags	ti_t.th_flags
571eaf0ac3Slogwang #define	ti_win		ti_t.th_win
581eaf0ac3Slogwang #define	ti_sum		ti_t.th_sum
591eaf0ac3Slogwang #define	ti_urp		ti_t.th_urp
601eaf0ac3Slogwang 
611eaf0ac3Slogwang #endif
62