tcpipv6.h 2.8 KB

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