|
UbixOS
2.0
|
#include "lwip/arch.h"#include "lwip/ip6_addr.h"
Go to the source code of this file.
Data Structures | |
| struct | ip6_addr_packed |
| struct | ip6_frag_hdr |
| struct | ip6_hbh_hdr |
| struct | ip6_hdr |
Macros | |
| #define | IP6_FRAG_HLEN 8 |
| #define | IP6_FRAG_MORE_FLAG 0x0001 |
| #define | IP6_FRAG_OFFSET_MASK 0xfff8 |
| #define | IP6_HBH_HLEN 8 |
| #define | IP6_HLEN 40 |
| #define | IP6_NEXTH_DESTOPTS 60 |
| #define | IP6_NEXTH_ENCAPS 41 |
| #define | IP6_NEXTH_FRAGMENT 44 |
| #define | IP6_NEXTH_HOPBYHOP 0 |
| #define | IP6_NEXTH_ICMP6 58 |
| #define | IP6_NEXTH_NONE 59 |
| #define | IP6_NEXTH_ROUTING 43 |
| #define | IP6_NEXTH_TCP 6 |
| #define | IP6_NEXTH_UDP 17 |
| #define | IP6_NEXTH_UDPLITE 136 |
| #define | IP6_PAD1_OPTION 0 |
| #define | IP6_PADN_ALERT_OPTION 1 |
| #define | IP6_ROUTER_ALERT_OPTION 5 |
| #define | IP6_ROUTER_ALERT_VALUE_MLD 0 |
| #define | IP6H_FL(hdr) (lwip_ntohl((hdr)->_v_tc_fl) & 0x000fffff) |
| #define | IP6H_HOPLIM(hdr) ((hdr)->_hoplim) |
| #define | IP6H_HOPLIM_SET(hdr, hl) (hdr)->_hoplim = (u8_t)(hl) |
| #define | IP6H_NEXTH(hdr) ((hdr)->_nexth) |
| #define | IP6H_NEXTH_P(hdr) ((u8_t *)(hdr) + 6) |
| #define | IP6H_NEXTH_SET(hdr, nexth) (hdr)->_nexth = (nexth) |
| #define | IP6H_PLEN(hdr) (lwip_ntohs((hdr)->_plen)) |
| #define | IP6H_PLEN_SET(hdr, plen) (hdr)->_plen = lwip_htons(plen) |
| #define | IP6H_TC(hdr) ((lwip_ntohl((hdr)->_v_tc_fl) >> 20) & 0xff) |
| #define | IP6H_V(hdr) ((lwip_ntohl((hdr)->_v_tc_fl) >> 28) & 0x0f) |
| #define | IP6H_VTCFL_SET(hdr, v, tc, fl) (hdr)->_v_tc_fl = (lwip_htonl((((u32_t)(v)) << 28) | (((u32_t)(tc)) << 20) | (fl))) |
Typedefs | |
| typedef typedefPACK_STRUCT_END struct ip6_addr_packed | ip6_addr_p_t |
Variables | |
| PACK_STRUCT_BEGIN struct ip6_addr_packed | PACK_STRUCT_STRUCT |
IPv6 protocol definitions
Definition in file ip6.h.
| #define IP6H_FL | ( | hdr | ) | (lwip_ntohl((hdr)->_v_tc_fl) & 0x000fffff) |
| #define IP6H_HOPLIM_SET | ( | hdr, | |
| hl | |||
| ) | (hdr)->_hoplim = (u8_t)(hl) |
| #define IP6H_PLEN | ( | hdr | ) | (lwip_ntohs((hdr)->_plen)) |
| #define IP6H_PLEN_SET | ( | hdr, | |
| plen | |||
| ) | (hdr)->_plen = lwip_htons(plen) |
| #define IP6H_TC | ( | hdr | ) | ((lwip_ntohl((hdr)->_v_tc_fl) >> 20) & 0xff) |
| #define IP6H_V | ( | hdr | ) | ((lwip_ntohl((hdr)->_v_tc_fl) >> 28) & 0x0f) |
| #define IP6H_VTCFL_SET | ( | hdr, | |
| v, | |||
| tc, | |||
| fl | |||
| ) | (hdr)->_v_tc_fl = (lwip_htonl((((u32_t)(v)) << 28) | (((u32_t)(tc)) << 20) | (fl))) |
| typedef typedefPACK_STRUCT_END struct ip6_addr_packed ip6_addr_p_t |
| PACK_STRUCT_BEGIN struct ip6_frag_hdr PACK_STRUCT_STRUCT |