1 /* $OpenBSD: tcpipv6.h,v 1.8 2003/05/26 05:31:22 itojun Exp $ */ 2 3 /* 4 * @(#)COPYRIGHT 1.1 (NRL) 17 January 1995 5 * 6 * NRL grants permission for redistribution and use in source and binary 7 * forms, with or without modification, of the software and documentation 8 * created at NRL provided that the following conditions are met: 9 * 10 * 1. Redistributions of source code must retain the above copyright 11 * notice, this list of conditions and the following disclaimer. 12 * 2. Redistributions in binary form must reproduce the above copyright 13 * notice, this list of conditions and the following disclaimer in the 14 * documentation and/or other materials provided with the distribution. 15 * 3. All advertising materials mentioning features or use of this software 16 * must display the following acknowledgements: 17 * This product includes software developed by the University of 18 * California, Berkeley and its contributors. 19 * This product includes software developed at the Information 20 * Technology Division, US Naval Research Laboratory. 21 * 4. Neither the name of the NRL nor the names of its contributors 22 * may be used to endorse or promote products derived from this software 23 * without specific prior written permission. 24 * 25 * THE SOFTWARE PROVIDED BY NRL IS PROVIDED BY NRL AND CONTRIBUTORS ``AS 26 * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 27 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A 28 * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL NRL OR 29 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 30 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 31 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 32 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 33 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 34 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 35 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 36 * 37 * The views and conclusions contained in the software and documentation 38 * are those of the authors and should not be interpreted as representing 39 * official policies, either expressed or implied, of the US Naval 40 * Research Laboratory (NRL). 41 */ 42 43 #ifndef _NETINET6_TCPIPV6_H 44 #define _NETINET6_TCPIPV6_H 1 45 46 #include <netinet/ip6.h> 47 #include <netinet/tcp.h> 48 49 struct tcpipv6hdr { 50 struct ip6_hdr ti6_i; 51 struct tcphdr ti6_t; 52 }; 53 54 #define ti6_src ti6_i.ip6_src 55 #define ti6_dst ti6_i.ip6_dst 56 #define ti6_plen ti6_i.ip6_plen 57 #define ti6_sport ti6_t.th_sport 58 #define ti6_dport ti6_t.th_dport 59 #define ti6_seq ti6_t.th_seq 60 #define ti6_ack ti6_t.th_ack 61 #define ti6_x2 ti6_t.th_x2 62 #define ti6_off ti6_t.th_off 63 #define ti6_flags ti6_t.th_flags 64 #define ti6_win ti6_t.th_win 65 #define ti6_sum ti6_t.th_sum 66 #define ti6_urp ti6_t.th_urp 67 68 #endif /* _NETINET6_TCPIPV6_H */