Home
last modified time | relevance | path

Searched refs:icp (Results 1 – 18 of 18) sorted by relevance

/external/iputils/
Dping.c103 static void pr_icmph(__u8 type, __u8 code, __u32 info, struct icmphdr *icp);
720 struct icmphdr *icp; in send_probe() local
724 icp = (struct icmphdr *)outpack; in send_probe()
725 icp->type = ICMP_ECHO; in send_probe()
726 icp->code = 0; in send_probe()
727 icp->checksum = 0; in send_probe()
728 icp->un.echo.sequence = htons(ntransmitted+1); in send_probe()
729 icp->un.echo.id = ident; /* ID */ in send_probe()
737 memcpy(icp+1, &tmp_tv, sizeof(tmp_tv)); in send_probe()
739 memset(icp+1, 0, sizeof(struct timeval)); in send_probe()
[all …]
Dclockdiff.c137 struct icmphdr *icp = (struct icmphdr *) packet; in measure() local
226 icp = (struct icmphdr *)(packet + (ip->ihl << 2)); in measure()
227 if( icp->type == ICMP_TIMESTAMPREPLY && in measure()
228 icp->un.echo.id == id && icp->un.echo.sequence >= seqno0 && in measure()
229 icp->un.echo.sequence <= seqno) { in measure()
230 if (acked < icp->un.echo.sequence) in measure()
231 acked = icp->un.echo.sequence; in measure()
235 sendtime = ntohl(*(__u32*)(icp+1)); in measure()
245 histime = ntohl(((__u32*)(icp+1))[1]); in measure()
314 struct icmphdr *icp = (struct icmphdr *) packet; in measure_opt() local
[all …]
Drdisc.c543 struct icmphdr *icp = (struct icmphdr *) ALLIGN(outpack); in solicitor() local
550 icp->type = ICMP_ROUTER_SOLICITATION; in solicitor()
551 icp->code = 0; in solicitor()
552 icp->checksum = 0; in solicitor()
553 icp->un.gateway = 0; /* Reserved */ in solicitor()
557 icp->checksum = in_cksum( (u_short *)icp, packetlen ); in solicitor()
723 struct icmphdr *icp; in pr_pack() local
736 icp = (struct icmphdr *)ALLIGN(buf + hlen); in pr_pack()
738 switch (icp->type) { in pr_pack()
741 struct icmp_ra *rap = (struct icmp_ra *)ALLIGN(icp); in pr_pack()
[all …]
Dtraceroute6.c828 struct icmp6_hdr *icp; in packet_ok() local
831 icp = (struct icmp6_hdr *) buf; in packet_ok()
833 type = icp->icmp6_type; in packet_ok()
834 code = icp->icmp6_code; in packet_ok()
843 hip = (struct ip6_hdr *) (icp + 1); in packet_ok()
873 p = (unsigned char *) (icp + 1); in packet_ok()
880 icp->icmp6_code); in packet_ok()
/external/llvm/test/Transforms/PGOProfile/
Dindirect_call_promotion.ll3 …s -pgo-icall-prom -S -pass-remarks=pgo-icall-prom -icp-count-threshold=0 -icp-percent-threshold=0 …
4 …es=pgo-icall-prom -S -pass-remarks=pgo-icall-prom -icp-count-threshold=0 -icp-percent-threshold=0 …
43 ; ICALL-PROM: br label %if.end.icp
48 ; ICALL-PROM: if.end.icp:
Dicp_vararg.ll21 ; ICALL-PROM: br label %if.end.icp
25 ; ICALL-PROM: br label %if.end.icp
27 ; ICALL-PROM:if.end.icp:
Dicp_invoke.ll1 ; RUN: opt < %s -icp-lto -pgo-icall-prom -S -icp-count-threshold=0 | FileCheck %s --check-prefix=ICP
2 ; RUN: opt < %s -icp-lto -passes=pgo-icall-prom -S -icp-count-threshold=0 | FileCheck %s --check-pr…
Dicp_covariant_call_return.ll32 ; ICALL-PROM: br label %if.end.icp
35 ; ICALL-PROM: br label %if.end.icp
36 ; ICALL-PROM:if.end.icp:
Dicp_covariant_invoke_return.ll41 ; ICALL-PROM: to label %if.end.icp unwind label %lpad
45 ; ICALL-PROM:if.end.icp:
52 …]+]] = phi %struct.Base* [ %call2, %if.false.orig_indirect ], [ [[DIRCALL_RET_CAST]], %if.end.icp ]
/external/libpcap/
Dgencode.h359 #define isMarked(icp, p) ((p)->mark == (icp)->cur_mark) argument
360 #define unMarkAll(icp) (icp)->cur_mark += 1 argument
361 #define Mark(icp, p) ((p)->mark = (icp)->cur_mark) argument
/external/dhcpcd-6.8.2/
Dipv6nd.c726 struct icmp6_hdr *icp, size_t len) in ipv6nd_handlera() argument
801 nd_ra = (struct nd_router_advert *)icp; in ipv6nd_handlera()
806 memcmp(rap->data, (unsigned char *)icp, rap->data_len) != 0)) in ipv6nd_handlera()
842 memcpy(rap->data, icp, len); in ipv6nd_handlera()
868 p = ((uint8_t *)icp) + sizeof(struct nd_router_advert); in ipv6nd_handlera()
1553 struct icmp6_hdr *icp, size_t len) in ipv6nd_handlena() argument
1576 nd_na = (struct nd_neighbor_advert *)icp; in ipv6nd_handlena()
1636 struct icmp6_hdr *icp; in ipv6nd_handledata() local
1696 icp = (struct icmp6_hdr *)ctx->rcvhdr.msg_iov[0].iov_base; in ipv6nd_handledata()
1697 if (icp->icmp6_code == 0) { in ipv6nd_handledata()
[all …]
/external/clang/test/SemaCXX/
Dcstyle-cast.cpp196 int const *icp = (int const*)(ipppc); in constness() local
197 (void)(int*)(icp); // const_cast appended in constness()
Dreinterpret-cast.cpp60 int const *icp = reinterpret_cast<int const*>(ipppc); in constness() local
62 …(void)reinterpret_cast<int*>(icp); // expected-error {{reinterpret_cast from 'const int *' to 'int… in constness()
Dfunctional-cast.cpp265 int const *icp = icp_t(ipppc); in constness() local
267 (void)intp(icp); // const_cast appended in constness()
/external/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.conv/
Dp2.cpp36 const int *icp = ctcv; in test_cvqual_conv() local
/external/tcpdump/
Dprint-icmp6.c626 const struct icmp6_hdr *icp, u_int len) in icmp6_cksum() argument
628 return nextproto6_cksum(ndo, ip6, (const uint8_t *)(const void *)icp, len, len, in icmp6_cksum()
1408 const struct icmp6_hdr *icp = (const struct icmp6_hdr *) bp; in mldv2_report_print() local
1418 ND_TCHECK(icp->icmp6_data16[1]); in mldv2_report_print()
1419 ngroups = EXTRACT_16BITS(&icp->icmp6_data16[1]); in mldv2_report_print()
1466 const struct icmp6_hdr *icp = (const struct icmp6_hdr *) bp; in mldv2_query_print() local
1477 ND_TCHECK(icp->icmp6_data16[0]); in mldv2_query_print()
1478 mrc = EXTRACT_16BITS(&icp->icmp6_data16[0]); in mldv2_query_print()
/external/python/cpython2/Mac/Modules/qdoffs/
D_Qdoffsmodule.c623 char *cp, *icp; in Qdoffs_PutPixMapBytes() local
625 if ( !PyArg_ParseTuple(_args, "O&is#", ResObj_Convert, &pm, &from, &icp, &length) ) in Qdoffs_PutPixMapBytes()
628 memcpy(cp, icp, length); in Qdoffs_PutPixMapBytes()
/external/python/cpython2/Mac/Modules/qd/
D_Qdmodule.c1471 char *cp, *icp; in BMObj_putdata() local
1473 if ( !PyArg_ParseTuple(_args, "is#", &from, &icp, &length) ) in BMObj_putdata()
1476 memcpy(cp, icp, length); in BMObj_putdata()