Searched refs:icmphdr (Results 1 – 15 of 15) sorted by relevance
/external/syslinux/core/lwip/src/core/ipv4/ |
D | icmp.c | 292 struct icmp_echo_hdr *icmphdr; in icmp_send_response() local 312 icmphdr = (struct icmp_echo_hdr *)q->payload; in icmp_send_response() 313 icmphdr->type = type; in icmp_send_response() 314 icmphdr->code = code; in icmp_send_response() 315 icmphdr->id = 0; in icmp_send_response() 316 icmphdr->seqno = 0; in icmp_send_response() 323 icmphdr->chksum = 0; in icmp_send_response() 324 icmphdr->chksum = inet_chksum(icmphdr, q->len); in icmp_send_response()
|
/external/android-clat/ |
D | ipv4.c | 34 int icmp_packet(clat_packet out, clat_packet_index pos, const struct icmphdr *icmp, in icmp_packet() 39 if(len < sizeof(struct icmphdr)) { in icmp_packet() 45 payload_size = len - sizeof(struct icmphdr); in icmp_packet() 126 iov_len = icmp_packet(out, pos + 2, (const struct icmphdr *) next_header, new_sum, len_left); in ipv4_packet()
|
D | translate.c | 227 int icmp_to_icmp6(clat_packet out, clat_packet_index pos, const struct icmphdr *icmp, in icmp_to_icmp6() 283 struct icmphdr *icmp_targ = out[pos].iov_base; in icmp6_to_icmp() 287 memset(icmp_targ, 0, sizeof(struct icmphdr)); in icmp6_to_icmp() 293 out[pos].iov_len = sizeof(struct icmphdr); in icmp6_to_icmp()
|
D | dump.h | 22 void dump_icmp(struct icmphdr *icmp);
|
D | translate.h | 69 int icmp_to_icmp6(clat_packet out, clat_packet_index pos, const struct icmphdr *icmp,
|
D | dump.c | 92 void dump_icmp(struct icmphdr *icmp) { in dump_icmp()
|
/external/iputils/ |
D | clockdiff.c | 137 struct icmphdr *icp = (struct icmphdr *) packet; in measure() 138 struct icmphdr *oicp = (struct icmphdr *) opacket; in measure() 226 icp = (struct icmphdr *)(packet + (ip->ihl << 2)); in measure() 314 struct icmphdr *icp = (struct icmphdr *) packet; in measure_opt() 315 struct icmphdr *oicp = (struct icmphdr *) opacket; in measure_opt() 406 icp = (struct icmphdr *)(packet + (ip->ihl << 2)); in measure_opt()
|
D | ping.c | 103 static void pr_icmph(__u8 type, __u8 code, __u32 info, struct icmphdr *icp); 616 struct icmphdr icmph; in receive_error_msg() 720 struct icmphdr *icp; in send_probe() 724 icp = (struct icmphdr *)outpack; in send_probe() 778 struct icmphdr *icp = (struct icmphdr *)_icp; in pr_echo_reply() 787 struct icmphdr *icp; in parse_reply() 830 icp = (struct icmphdr *)(buf + hlen); in parse_reply() 857 struct icmphdr *icp1 = (struct icmphdr*)((unsigned char *)iph + iph->ihl*4); in parse_reply() 987 void pr_icmph(__u8 type, __u8 code, __u32 info, struct icmphdr *icp) in pr_icmph()
|
D | rdisc.c | 543 struct icmphdr *icp = (struct icmphdr *) ALLIGN(outpack); in solicitor() 723 struct icmphdr *icp; in pr_pack() 736 icp = (struct icmphdr *)ALLIGN(buf + hlen); in pr_pack()
|
/external/kernel-headers/original/uapi/linux/ |
D | icmp.h | 68 struct icmphdr { struct
|
/external/syslinux/core/lwip/src/netif/ |
D | undiif.c | 318 struct icmp_echo_hdr *icmphdr; in snprintf_icmp_hdr() local 322 icmphdr = (struct icmp_echo_hdr *)((void *)iphdr + (IPH_HL(iphdr) << 2)); in snprintf_icmp_hdr() 327 icmphdr->type, icmphdr->code, ntohs(icmphdr->chksum), in snprintf_icmp_hdr() 328 ntohs(icmphdr->id), ntohs(icmphdr->seqno), in snprintf_icmp_hdr()
|
/external/ltp/testcases/network/sockets/ |
D | ltpClient.c | 60 struct icmphdr hdr; 61 char msg[PACKETSIZE - sizeof(struct icmphdr)]; 444 struct icmphdr *icmpPtr = netPacket + ip->ihl * 4; in output_to_display()
|
/external/ltp/testcases/network/stress/ns-tools/ |
D | ns-icmpv4_sender.c | 360 +sizeof(struct icmphdr) /* ICMP header */ in create_clean_packet() 392 sizeof(struct icmphdr) + in create_clean_packet()
|
D | ns-traffic.h | 117 struct icmphdr hdr;
|
D | ns-icmp_redirector.c | 391 +sizeof(struct icmphdr) /* ICMPv4 header */ in return_icmp4_redirect() 434 sizeof(struct icmphdr) + in return_icmp4_redirect()
|