Home
last modified time | relevance | path

Searched refs:ip6hdr (Results 1 – 5 of 5) sorted by relevance

/third_party/lwip/src/netif/
Dlowpan6_common.c140 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/
Dip6.c563 struct ip6_hdr *ip6hdr; local
584 ip6hdr = (struct ip6_hdr *)p->payload;
585 if (IP6H_V(ip6hdr) != 6) {
587 IP6H_V(ip6hdr)));
602 if ((IP6_HLEN > p->len) || (IP6H_PLEN(ip6hdr) > (p->tot_len - IP6_HLEN))) {
608 if ((IP6H_PLEN(ip6hdr) + IP6_HLEN) > p->tot_len) {
611 (u16_t)(IP6H_PLEN(ip6hdr) + IP6_HLEN), p->tot_len));
622 pbuf_realloc(p, (u16_t)(IP6_HLEN + IP6H_PLEN(ip6hdr)));
625 ip_addr_copy_from_ip6_packed(ip_data.current_iphdr_dest, ip6hdr->dest);
626 ip_addr_copy_from_ip6_packed(ip_data.current_iphdr_src, ip6hdr->src);
[all …]
Dip6_frag.c743 struct ip6_hdr *ip6hdr; in ip6_frag() local
790 ip6hdr = (struct ip6_hdr *)rambuf->payload; in ip6_frag()
806 ip6hdr = (struct ip6_hdr *)rambuf->payload; in ip6_frag()
859 IP6H_NEXTH_SET(ip6hdr, IP6_NEXTH_FRAGMENT); in ip6_frag()
860 IP6H_PLEN_SET(ip6hdr, (u16_t)(cop + IP6_FRAG_HLEN)); in ip6_frag()
Dnd6.c898 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()
2298 struct ip6_hdr *ip6hdr; local
2315 ip6hdr = (struct ip6_hdr *)(q->p->payload);
2317 ip6_addr_copy_from_packed(dest, ip6hdr->dest);
2330 ip6hdr = (struct ip6_hdr *)(neighbor_cache[i].q->payload);
2332 ip6_addr_copy_from_packed(dest, ip6hdr->dest);
/third_party/lwip/src/core/
Draw.c152 struct ip6_hdr *ip6hdr = (struct ip6_hdr *)p->payload; in raw_input() local
153 proto = IP6H_NEXTH(ip6hdr); in raw_input()