ip6.h 708 B

123456789101112131415161718192021
  1. struct ip6hdr {
  2. union {
  3. struct ip6hdrctl {
  4. u_int32_t ctl6_flow; /* 24 bits of flow-ID */
  5. u_int16_t ctl6_plen; /* payload length */
  6. u_int8_t ctl6_nxt; /* next header */
  7. u_int8_t ctl6_hlim; /* hop limit */
  8. } un_ctl6;
  9. u_int8_t un_vfc; /* 4 bits version, 4 bits reserved */
  10. } ip6_ctlun;
  11. struct in6_addr ip6_src; /* source address */
  12. struct in6_addr ip6_dst; /* destination address */
  13. };
  14. #define ip6_vfc ip6_ctlun.un_vfc
  15. #define ip6_flow ip6_ctlun.un_ctl6.ctl6_flow
  16. #define ip6_plen ip6_ctlun.un_ctl6.ctl6_plen
  17. #define ip6_nxt ip6_ctlun.un_ctl6.ctl6_nxt
  18. #define ip6_hlim ip6_ctlun.un_ctl6.ctl6_hlim
  19. #define ip6_hops ip6_ctlun.un_ctl6.ctl6_hlim