/third_party/lwip/src/core/ipv4/ |
D | ip4.c | 314 ip4_forward(struct pbuf *p, struct ip_hdr *iphdr, struct netif *inp) argument 352 IPH_TTL_SET(iphdr, IPH_TTL(iphdr) - 1); 354 if (IPH_TTL(iphdr) == 0) { 358 if (IPH_PROTO(iphdr) != IP_PROTO_ICMP) { 366 if (IPH_CHKSUM(iphdr) >= PP_HTONS(0xffffU - 0x100)) { 367 IPH_CHKSUM_SET(iphdr, (u16_t)(IPH_CHKSUM(iphdr) + PP_HTONS(0x100) + 1)); 369 IPH_CHKSUM_SET(iphdr, (u16_t)(IPH_CHKSUM(iphdr) + PP_HTONS(0x100))); 383 if ((IPH_OFFSET(iphdr) & PP_NTOHS(IP_DF)) == 0) { 461 const struct ip_hdr *iphdr; local 482 iphdr = (struct ip_hdr *)p->payload; [all …]
|
D | icmp.c | 212 struct ip_hdr *iphdr = (struct ip_hdr *)p->payload; in icmp_input() local 213 ip4_addr_copy(iphdr->src, *src); in icmp_input() 214 ip4_addr_copy(iphdr->dest, *ip4_current_src_addr()); in icmp_input() 235 IPH_TTL_SET(iphdr, ICMP_TTL); in icmp_input() 236 IPH_CHKSUM_SET(iphdr, 0); in icmp_input() 239 IPH_CHKSUM_SET(iphdr, inet_chksum(iphdr, hlen)); in icmp_input() 343 struct ip_hdr *iphdr; in icmp_send_response() local 369 iphdr = (struct ip_hdr *)p->payload; in icmp_send_response() 371 ip4_addr_debug_print_val(ICMP_DEBUG, iphdr->src); in icmp_send_response() 373 ip4_addr_debug_print_val(ICMP_DEBUG, iphdr->dest); in icmp_send_response() [all …]
|
D | ip4_frag.c | 185 SMEMCPY(p->payload, &ipr->iphdr, IP_HLEN); in ip_reass_free_complete_datagram() 265 if (!IP_ADDRESSES_AND_ID_MATCH(&r->iphdr, fraghdr)) { in ip_reass_remove_oldest_datagram() 328 SMEMCPY(&(ipr->iphdr), fraghdr, IP_HLEN); in ip_reass_enqueue_new_datagram() 578 if (IP_ADDRESSES_AND_ID_MATCH(&ipr->iphdr, fraghdr)) { in ip4_reass() 595 ((lwip_ntohs(IPH_OFFSET(&ipr->iphdr)) & IP_OFFMASK) != 0)) { in ip4_reass() 600 SMEMCPY(&ipr->iphdr, fraghdr, IP_HLEN); in ip4_reass() 648 SMEMCPY(fraghdr, &ipr->iphdr, IP_HLEN); in ip4_reass() 769 struct ip_hdr *iphdr; in ip4_frag() local 779 iphdr = original_iphdr; in ip4_frag() 780 if (IPH_HL_BYTES(iphdr) != IP_HLEN) { in ip4_frag() [all …]
|
D | etharp.c | 860 struct ip_hdr *iphdr = LWIP_ALIGNMENT_CAST(struct ip_hdr *, q->payload); local 865 if (!ip4_addr_islinklocal(&iphdr->src))
|
/third_party/lwip/test/unit/ip4/ |
D | test_ip4.c | 29 struct ip_hdr *iphdr = (struct ip_hdr *)p->payload; in create_ip4_input_fragment() local 30 IPH_VHL_SET(iphdr, 4, sizeof(struct ip_hdr) / 4); in create_ip4_input_fragment() 31 IPH_TOS_SET(iphdr, 0); in create_ip4_input_fragment() 32 IPH_LEN_SET(iphdr, lwip_htons(p->tot_len)); in create_ip4_input_fragment() 33 IPH_ID_SET(iphdr, lwip_htons(ip_id)); in create_ip4_input_fragment() 35 IPH_OFFSET_SET(iphdr, lwip_htons(start / 8)); in create_ip4_input_fragment() 37 IPH_OFFSET_SET(iphdr, lwip_htons((start / 8) | IP_MF)); in create_ip4_input_fragment() 39 IPH_TTL_SET(iphdr, 5); in create_ip4_input_fragment() 40 IPH_PROTO_SET(iphdr, IP_PROTO_UDP); in create_ip4_input_fragment() 41 IPH_CHKSUM_SET(iphdr, 0); in create_ip4_input_fragment() [all …]
|
/third_party/lwip/test/unit/tcp/ |
D | tcp_helper.c | 52 struct ip_hdr* iphdr; in tcp_create_segment_wnd() local 70 iphdr = (struct ip_hdr*)p->payload; in tcp_create_segment_wnd() 72 iphdr->dest.addr = ip_2_ip4(dst_ip)->addr; in tcp_create_segment_wnd() 73 iphdr->src.addr = ip_2_ip4(src_ip)->addr; in tcp_create_segment_wnd() 74 IPH_VHL_SET(iphdr, 4, IP_HLEN / 4); in tcp_create_segment_wnd() 75 IPH_TOS_SET(iphdr, 0); in tcp_create_segment_wnd() 76 IPH_LEN_SET(iphdr, htons(p->tot_len)); in tcp_create_segment_wnd() 77 IPH_CHKSUM_SET(iphdr, inet_chksum(iphdr, IP_HLEN)); in tcp_create_segment_wnd() 256 struct ip_hdr *iphdr = (struct ip_hdr*)p->payload; in test_tcp_input() local 258 ip_addr_copy_from_ip4(*ip_current_dest_addr(), iphdr->dest); in test_tcp_input() [all …]
|
/third_party/lwip/src/netif/ppp/ |
D | demand.c | 325 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))));
|
/third_party/lwip/src/include/lwip/ |
D | ip6_frag.h | 83 #define IPV6_FRAG_SRC(ipr) ((ipr)->iphdr->src) 84 #define IPV6_FRAG_DEST(ipr) ((ipr)->iphdr->dest) 93 struct ip6_hdr *iphdr; /* pointer to the first (original) IPv6 header */ member
|
D | ip4_frag.h | 64 struct ip_hdr iphdr; member
|
/third_party/lwip/src/core/ipv6/ |
D | ip6_frag.c | 188 if (pbuf_header_force(p, (s16_t)((u8_t*)p->payload - (u8_t*)ipr->iphdr))) { in ip6_reass_free_complete_datagram() 385 ipr->iphdr = ip_data.current_ip6_header; in ip6_reass() 532 ipr->iphdr = ip_data.current_ip6_header; in ip6_reass() 629 MEMMOVE((u8_t*)ipr->iphdr + sizeof(struct ip6_frag_hdr), ipr->iphdr, in ip6_reass() 630 (size_t)((u8_t*)p->payload - (u8_t*)ipr->iphdr)); in ip6_reass() 633 iphdr_ptr = (struct ip6_hdr*)((u8_t*)ipr->iphdr + in ip6_reass()
|
D | ip6.c | 418 ip6_forward(struct pbuf *p, struct ip6_hdr *iphdr, struct netif *inp) argument 445 if (IP6H_NEXTH(iphdr) != IP6_NEXTH_ICMP6) { 477 IP6H_HOPLIM_SET(iphdr, IP6H_HOPLIM(iphdr) - 1); 479 if (IP6H_HOPLIM(iphdr) == 0) { 482 if (IP6H_NEXTH(iphdr) != IP6_NEXTH_ICMP6) { 493 if (IP6H_NEXTH(iphdr) != IP6_NEXTH_ICMP6) {
|
/third_party/ltp/testcases/network/stress/ns-tools/ |
D | ns-icmpv4_sender.c | 359 pkt_size = sizeof(struct iphdr) /* IP header */ in create_clean_packet() 367 pkt.hdr.ihl = sizeof(struct iphdr) / 4; in create_clean_packet() 390 sizeof(struct iphdr)); in create_clean_packet() 523 calc_checksum((u_int16_t *) & (pkt->hdr), sizeof(struct iphdr)); in thrust_fakes()
|
D | ns-icmp_redirector.c | 390 +sizeof(struct iphdr) /* IPv4 header */ in return_icmp4_redirect() 406 sndip_p->hdr.ihl = sizeof(struct iphdr) / 4; in return_icmp4_redirect() 417 sizeof(struct iphdr)); in return_icmp4_redirect()
|
D | ns-traffic.h | 112 struct iphdr hdr;
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/ap/ |
D | fils_hlp.c | 161 struct iphdr *iph; in fils_dhcp_handler() 482 const struct iphdr *iph; in fils_process_hlp_udp() 488 iph = (const struct iphdr *) pos; in fils_process_hlp_udp() 513 const struct iphdr *iph; in fils_process_hlp_ip() 518 iph = (const struct iphdr *) pos; in fils_process_hlp_ip()
|
/third_party/gstreamer/gstplugins_bad/ext/sctp/usrsctp/usrsctplib/ |
D | user_recv_thread.c | 269 struct ip *iphdr; in recv_function_raw() local 374 iphdr = mtod(recvmbuf[0], struct ip *); in recv_function_raw() 375 sh = (struct sctphdr *)((caddr_t)iphdr + sizeof(struct ip)); in recv_function_raw() 379 if (iphdr->ip_tos != 0) { in recv_function_raw() 380 ecn = iphdr->ip_tos & 0x02; in recv_function_raw() 387 dst.sin_addr = iphdr->ip_dst; in recv_function_raw() 394 src.sin_addr = iphdr->ip_src; in recv_function_raw()
|
/third_party/musl/porting/uniproton/kernel/include/netinet/ |
D | ip.h | 24 struct iphdr { struct
|
/third_party/musl/include/netinet/ |
D | ip.h | 24 struct iphdr { struct
|
/third_party/musl/porting/liteos_m/kernel/include/netinet/ |
D | ip.h | 24 struct iphdr { struct
|
/third_party/musl/porting/liteos_m_iccarm/kernel/include/netinet/ |
D | ip.h | 24 struct iphdr { struct
|
/third_party/musl/porting/liteos_a/kernel/include/netinet/ |
D | ip.h | 24 struct iphdr { struct
|
/third_party/musl/ndk_musl_include/netinet/ |
D | ip.h | 24 struct iphdr { struct
|
/third_party/libbpf/src/ |
D | bpf_helper_defs.h | 44 struct iphdr; 4547 static __s64 (*bpf_tcp_raw_gen_syncookie_ipv4)(struct iphdr *iph, struct tcphdr *th, __u32 th_len) … 4592 static long (*bpf_tcp_raw_check_syncookie_ipv4)(struct iphdr *iph, struct tcphdr *th) = (void *) 20…
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/common/ |
D | dhcp.h | 42 struct iphdr iph;
|
/third_party/ltp/testcases/network/sockets/ |
D | ltpClient.c | 443 struct iphdr *ip = netPacket; in output_to_display() 588 struct iphdr *ip; in ltp_traceroute()
|