Searched refs:icp (Results 1 - 3 of 3) sorted by relevance
/haiku/src/bin/network/ping/ |
H A D | ping.c | 1045 struct icmp icp; local 1050 memcpy(&icp, outpack, ICMP_MINLEN + phdr_len); 1051 icp.icmp_type = icmp_type; 1052 icp.icmp_code = 0; 1053 icp.icmp_cksum = 0; 1054 icp.icmp_seq = htons(ntransmitted); 1055 icp.icmp_id = ident; /* ID */ 1070 icp.icmp_otime = htonl((now.tv_sec % (24*60*60)) 1078 memcpy(outpack, &icp, ICMP_MINLEN + phdr_len); 1083 icp 1133 struct icmp icp; local 1460 pr_icmph(struct icmp *icp, struct ip *oip, const u_char *const oicmp_raw) argument [all...] |
H A D | ping6.c | 1328 struct icmp6_hdr *icp; local 1337 icp = (struct icmp6_hdr *)outpack; 1339 memset(icp, 0, sizeof(*icp)); 1340 icp->icmp6_cksum = 0; 1347 icp->icmp6_type = ICMP6_NI_QUERY; 1348 icp->icmp6_code = ICMP6_NI_SUBJ_IPV6; 1364 icp->icmp6_type = ICMP6_NI_QUERY; 1365 icp->icmp6_code = 0; /* code field is always 0 */ 1379 icp 1459 myechoreply(const struct icmp6_hdr *icp) argument 1564 struct icmp6_hdr *icp; local 2321 pr_icmph(struct icmp6_hdr *icp, u_char *end) argument [all...] |
/haiku/src/bin/network/traceroute/ |
H A D | traceroute.c | 1393 register struct icmp *icp; local 1408 icp = (struct icmp *)(buf + hlen); 1410 icp = (struct icmp *)buf; 1412 type = icp->icmp_type; 1413 code = icp->icmp_code; 1418 pmtu = ntohs(icp->icmp_nextmtu); 1422 && (*proto->check)((u_char *)icp, (u_char)seq)) 1428 hip = &icp->icmp_ip; 1429 hiplen = ((u_char *)icp + cc) - (u_char *)hip; 1440 u_int32_t *lp = (u_int32_t *)&icp [all...] |
Completed in 43 milliseconds