Home
last modified time | relevance | path

Searched refs:iphdr (Results 1 – 13 of 13) sorted by relevance

/AliOS-Things-master/components/lwip/lwip2.0.0/core/ipv4/
A Dip4.c316 IPH_TTL_SET(iphdr, IPH_TTL(iphdr) - 1); in ip4_forward()
318 if (IPH_TTL(iphdr) == 0) { in ip4_forward()
331 IPH_CHKSUM_SET(iphdr, IPH_CHKSUM(iphdr) + PP_HTONS(0x100) + 1); in ip4_forward()
333 IPH_CHKSUM_SET(iphdr, IPH_CHKSUM(iphdr) + PP_HTONS(0x100)); in ip4_forward()
386 struct ip_hdr *iphdr; local
401 if (IPH_V(iphdr) != 4) {
618 …hs(IPH_ID(iphdr)), p->tot_len, lwip_ntohs(IPH_LEN(iphdr)), (u16_t)!!(IPH_OFFSET(iphdr) & PP_HTONS(…
815 struct ip_hdr *iphdr; local
894 chk_sum += iphdr->_id;
923 IPH_CHKSUM_SET(iphdr, inet_chksum(iphdr, ip_hlen));
[all …]
A Dicmp.c201 struct ip_hdr *iphdr = (struct ip_hdr*)p->payload; in icmp_input() local
202 ip4_addr_copy(iphdr->src, *src); in icmp_input()
224 IPH_TTL_SET(iphdr, ICMP_TTL); in icmp_input()
225 IPH_CHKSUM_SET(iphdr, 0); in icmp_input()
228 IPH_CHKSUM_SET(iphdr, inet_chksum(iphdr, hlen)); in icmp_input()
332 struct ip_hdr *iphdr; in icmp_send_response() local
352 iphdr = (struct ip_hdr *)p->payload; in icmp_send_response()
354 ip4_addr_debug_print_val(ICMP_DEBUG, iphdr->src); in icmp_send_response()
356 ip4_addr_debug_print_val(ICMP_DEBUG, iphdr->dest); in icmp_send_response()
369 ip4_addr_copy(iphdr_src, iphdr->src); in icmp_send_response()
[all …]
A Dip4_frag.c181 SMEMCPY(p->payload, &ipr->iphdr, IP_HLEN); in ip_reass_free_complete_datagram()
304 SMEMCPY(&(ipr->iphdr), fraghdr, IP_HLEN); in ip_reass_enqueue_new_datagram()
552 SMEMCPY(&ipr->iphdr, fraghdr, IP_HLEN); in ip4_reass()
583 SMEMCPY(fraghdr, &ipr->iphdr, IP_HLEN); in ip4_reass()
692 struct ip_hdr *iphdr; in ip4_frag() local
705 iphdr = original_iphdr; in ip4_frag()
709 tmp = lwip_ntohs(IPH_OFFSET(iphdr)); in ip4_frag()
734 iphdr = (struct ip_hdr*)rambuf->payload; in ip4_frag()
799 IPH_OFFSET_SET(iphdr, lwip_htons(tmp)); in ip4_frag()
801 IPH_CHKSUM_SET(iphdr, 0); in ip4_frag()
[all …]
A Detharp.c870 struct ip_hdr *iphdr = (struct ip_hdr*)(size_t)q->payload; local
875 if (!ip4_addr_islinklocal(&iphdr->src))
/AliOS-Things-master/components/lwip/lwip2.0.0/netif/ppp/
A Ddemand.c325 unsigned iphdr; local
342 iphdr = (pkt->data[4] & 15) << 2;
350 pkt_checksum = *((unsigned short *) (pkt->data+10+iphdr));
363 pkt_checksum = *((unsigned short *) (pkt->data+20+iphdr));
393 *((unsigned short *) (pkt->data+20+iphdr)) = pkt_checksum;
396 *((unsigned short *) (pkt->data+10+iphdr)) = pkt_checksum;
409 ntohs(*( (short *) (pkt->data+iphdr+4))),
411 ntohs(*( (short *) (pkt->data+iphdr+6))));
/AliOS-Things-master/components/lwip/lwip2.0.0/core/ipv6/
A Dip6_frag.c163 if (pbuf_header_force(p, (s16_t)((u8_t*)p->payload - (u8_t*)IPV6_FRAG_HDRREF(ipr->iphdr)))) { in ip6_reass_free_complete_datagram()
298 ip6_addr_cmp(ip6_current_src_addr(), &(IPV6_FRAG_HDRREF(ipr->iphdr)->src)) && in ip6_reass()
299 ip6_addr_cmp(ip6_current_dest_addr(), &(IPV6_FRAG_HDRREF(ipr->iphdr)->dest))) { in ip6_reass()
341 MEMCPY(&ipr->iphdr, ip6_current_header(), IP6_HLEN); in ip6_reass()
344 ipr->iphdr = ip_data.current_ip6_header; in ip6_reass()
480 MEMCPY(&ipr->iphdr, ip6_current_header(), IP6_HLEN); in ip6_reass()
484 ipr->iphdr = ip_data.current_ip6_header; in ip6_reass()
552 MEMCPY(iphdr_ptr, &ipr->iphdr, IP6_HLEN); in ip6_reass()
554 iphdr_ptr = ipr->iphdr; in ip6_reass()
A Dip6.c293 ip6_forward(struct pbuf *p, struct ip6_hdr *iphdr, struct netif *inp) in ip6_forward() argument
319 if (IP6H_NEXTH(iphdr) != IP6_NEXTH_ICMP6) { in ip6_forward()
337 IP6H_HOPLIM_SET(iphdr, IP6H_HOPLIM(iphdr) - 1); in ip6_forward()
339 if (IP6H_HOPLIM(iphdr) == 0) { in ip6_forward()
342 if (IP6H_NEXTH(iphdr) != IP6_NEXTH_ICMP6) { in ip6_forward()
353 if (IP6H_NEXTH(iphdr) != IP6_NEXTH_ICMP6) { in ip6_forward()
/AliOS-Things-master/components/lwip/lwip2.0.0/apps/ping/
A Dnet_deamon.c128 struct ip_hdr *iphdr; in ping_recv() local
131 iphdr = (struct ip_hdr *)buf; in ping_recv()
132 iecho = (struct icmp_echo_hdr *)(buf + (IPH_HL(iphdr) * 4)); in ping_recv()
A Dping.c221 struct ip_hdr *iphdr; in ping_recv() local
224 iphdr = (struct ip_hdr *)buf; in ping_recv()
225 iecho = (struct icmp_echo_hdr *)(buf + (IPH_HL(iphdr) * 4)); in ping_recv()
/AliOS-Things-master/components/lwip/lwip2.0.0/include/lwip/
A Dip4_frag.h64 struct ip_hdr iphdr; member
A Dip6_frag.h83 struct ip6_hdr IPV6_FRAG_HDRPTR iphdr; member
/AliOS-Things-master/hardware/chip/haas1000/drivers/net/lwip/src/include/lwip/
A Dip4_frag.h64 struct ip_hdr iphdr; member
A Dip6_frag.h83 struct ip6_hdr IPV6_FRAG_HDRPTR iphdr; member

Completed in 18 milliseconds