Searched refs:ip6hdr (Results 1 – 5 of 5) sorted by relevance
/third_party/lwip/src/netif/ |
D | lowpan6_common.c | 140 struct ip6_hdr *ip6hdr; in lowpan6_compress_headers() local 163 ip6hdr = (struct ip6_hdr *)inptr; in lowpan6_compress_headers() 164 ip_addr_copy_from_ip6_packed(ip6dst, ip6hdr->dest); in lowpan6_compress_headers() 166 ip_addr_copy_from_ip6_packed(ip6src, ip6hdr->src); in lowpan6_compress_headers() 203 if (IP6H_FL(ip6hdr) == 0) { in lowpan6_compress_headers() 206 if (IP6H_TC(ip6hdr) == 0) { in lowpan6_compress_headers() 211 buffer[lowpan6_header_len++] = IP6H_TC(ip6hdr); in lowpan6_compress_headers() 214 if (((IP6H_TC(ip6hdr) & 0x3f) == 0)) { in lowpan6_compress_headers() 218 buffer[lowpan6_header_len] = IP6H_TC(ip6hdr) & 0xc0; in lowpan6_compress_headers() 219 buffer[lowpan6_header_len++] |= (IP6H_FL(ip6hdr) >> 16) & 0x0f; in lowpan6_compress_headers() [all …]
|
/third_party/lwip/src/core/ipv6/ |
D | ip6.c | 511 struct ip6_hdr *ip6hdr; local 528 ip6hdr = (struct ip6_hdr *)p->payload; 529 if (IP6H_V(ip6hdr) != 6) { 531 IP6H_V(ip6hdr))); 546 if ((IP6_HLEN > p->len) || (IP6H_PLEN(ip6hdr) > (p->tot_len - IP6_HLEN))) { 552 if ((IP6H_PLEN(ip6hdr) + IP6_HLEN) > p->tot_len) { 555 (u16_t)(IP6H_PLEN(ip6hdr) + IP6_HLEN), p->tot_len)); 566 pbuf_realloc(p, (u16_t)(IP6_HLEN + IP6H_PLEN(ip6hdr))); 569 ip_addr_copy_from_ip6_packed(ip_data.current_iphdr_dest, ip6hdr->dest); 570 ip_addr_copy_from_ip6_packed(ip_data.current_iphdr_src, ip6hdr->src); [all …]
|
D | ip6_frag.c | 723 struct ip6_hdr *ip6hdr; in ip6_frag() local 770 ip6hdr = (struct ip6_hdr *)rambuf->payload; in ip6_frag() 786 ip6hdr = (struct ip6_hdr *)rambuf->payload; in ip6_frag() 839 IP6H_NEXTH_SET(ip6hdr, IP6_NEXTH_FRAGMENT); in ip6_frag() 840 IP6H_PLEN_SET(ip6hdr, (u16_t)(cop + IP6_FRAG_HLEN)); in ip6_frag()
|
D | nd6.c | 898 struct ip6_hdr *ip6hdr; /* IPv6 header of the packet which caused the error */ in nd6_input() local 912 ip6hdr = (struct ip6_hdr *)((u8_t*)p->payload + sizeof(struct icmp6_hdr)); in nd6_input() 915 ip6_addr_copy_from_packed(destination_address, ip6hdr->dest); in nd6_input() 2190 struct ip6_hdr *ip6hdr; in nd6_send_q() local 2207 ip6hdr = (struct ip6_hdr *)(q->p->payload); in nd6_send_q() 2209 ip6_addr_copy_from_packed(dest, ip6hdr->dest); in nd6_send_q() 2222 ip6hdr = (struct ip6_hdr *)(neighbor_cache[i].q->payload); in nd6_send_q() 2224 ip6_addr_copy_from_packed(dest, ip6hdr->dest); in nd6_send_q()
|
/third_party/lwip/src/core/ |
D | raw.c | 149 struct ip6_hdr *ip6hdr = (struct ip6_hdr *)p->payload; in raw_input() local 150 proto = IP6H_NEXTH(ip6hdr); in raw_input()
|