Searched refs:icp (Results 1 - 15 of 15) sorted by relevance

/freebsd-11-stable/sys/netinet/
H A Dip_icmp.c195 struct icmp *icp; local
327 icp = mtod(m, struct icmp *);
329 icp->icmp_type = type;
331 icp->icmp_gwaddr.s_addr = dest;
333 icp->icmp_void = 0;
339 icp->icmp_pptr = code;
343 icp->icmp_nextmtu = htons(mtu);
346 icp->icmp_code = code;
352 m_copydata(n, 0, icmplen, (caddr_t)&icp->icmp_ip);
353 nip = &icp
392 struct icmp *icp; local
920 struct icmp *icp; local
[all...]
H A Dtcp_subr.c1941 struct icmp *icp; local
1972 icp = (struct icmp *)((caddr_t)ip - offsetof(struct icmp, icmp_ip));
1997 mtu = ntohs(icp->icmp_nextmtu);
/freebsd-11-stable/sbin/ping/
H A Dping.c1043 struct icmp *icp; local
1048 icp = (struct icmp *)outpack;
1049 icp->icmp_type = icmp_type;
1050 icp->icmp_code = 0;
1051 icp->icmp_cksum = 0;
1052 icp->icmp_seq = htons(ntransmitted);
1053 icp->icmp_id = ident; /* ID */
1063 icp->icmp_otime = htonl((now.tv_sec % (24*60*60))
1074 icp->icmp_cksum = in_cksum((u_short *)icp, c
1114 struct icmp *icp; local
1521 pr_icmph(struct icmp *icp) argument
[all...]
/freebsd-11-stable/usr.sbin/timed/timed/
H A Dmeasure.c76 register struct icmp *icp = (struct icmp *) packet; local
187 icp = (struct icmp *)(packet + (ip->ip_hl << 2));
189 || icp->icmp_type != ICMP_TSTAMPREPLY
190 || icp->icmp_id != oicp->icmp_id
191 || icp->icmp_seq < seqno
192 || icp->icmp_seq >= oicp->icmp_seq)
196 sendtime = ntohl(icp->icmp_otime);
205 histime1 = ntohl(icp->icmp_rtime);
206 histime2 = ntohl(icp->icmp_ttime);
/freebsd-11-stable/contrib/ipfilter/ipsend/
H A Diptests.c559 struct icmp *icp; local
569 ip->ip_len = sizeof(*ip) + sizeof(*icp);
570 icp = (struct icmp *)((char *)ip + (IP_HL(ip) << 2));
580 bzero((char *)icp, sizeof(*icp));
582 icp->icmp_type = i;
587 icp->icmp_type = 255;
598 icp->icmp_type = 3;
600 icp->icmp_code = i;
611 icp
[all...]
/freebsd-11-stable/contrib/libpcap/
H A Dgencode.h360 #define isMarked(icp, p) ((p)->mark == (icp)->cur_mark)
361 #define unMarkAll(icp) (icp)->cur_mark += 1
362 #define Mark(icp, p) ((p)->mark = (icp)->cur_mark)
/freebsd-11-stable/sys/dev/cxgbe/cxgbei/
H A Dcxgbei.c540 struct icl_cxgbei_pdu *icp; local
547 icp = ip_to_icp(ip);
548 bcopy(mtod(m, caddr_t) + sizeof(*cpl), icp->ip.ip_bhs, sizeof(struct
550 icp->pdu_seq = ntohl(cpl->seq);
551 icp->pdu_flags = SBUF_ULP_FLAG_HDR_RCVD;
555 toep->ulpcb2 = icp;
573 struct icl_cxgbei_pdu *icp = toep->ulpcb2; local
578 MPASS(icp != NULL);
579 MPASS(icp->pdu_flags == SBUF_ULP_FLAG_HDR_RCVD);
580 MPASS(icp
610 struct icl_cxgbei_pdu *icp = toep->ulpcb2; local
[all...]
H A Dicl_cxgbei.c154 struct icl_cxgbei_pdu *icp = ip_to_icp(ip); local
157 MPASS(icp->icp_signature == CXGBEI_PDU_SIGNATURE);
174 struct icl_cxgbei_pdu *icp; local
184 icp = (struct icl_cxgbei_pdu *)a;
185 bzero(icp, sizeof(*icp));
187 icp->icp_signature = CXGBEI_PDU_SIGNATURE;
188 ip = &icp->ip;
191 a = roundup2((uintptr_t)(icp + 1), _Alignof(struct iscsi_bhs *));
262 finalize_pdu(struct icl_cxgbei_conn *icc, struct icl_cxgbei_pdu *icp) argument
324 struct icl_cxgbei_pdu *icp = ip_to_icp(ip); local
357 struct icl_cxgbei_pdu *icp = ip_to_icp(ip); local
368 struct icl_cxgbei_pdu *icp = ip_to_icp(ip); local
[all...]
/freebsd-11-stable/sbin/ping6/
H A Dping6.c1264 struct icmp6_hdr *icp; local
1273 icp = (struct icmp6_hdr *)outpack;
1275 memset(icp, 0, sizeof(*icp));
1276 icp->icmp6_cksum = 0;
1281 icp->icmp6_type = ICMP6_NI_QUERY;
1282 icp->icmp6_code = ICMP6_NI_SUBJ_IPV6;
1296 icp->icmp6_type = ICMP6_NI_QUERY;
1297 icp->icmp6_code = 0; /* code field is always 0 */
1308 icp
1377 myechoreply(const struct icmp6_hdr *icp) argument
1467 struct icmp6_hdr *icp; local
2281 pr_icmph(struct icmp6_hdr *icp, u_char *end) argument
[all...]
/freebsd-11-stable/usr.sbin/traceroute6/
H A Dtraceroute6.c1067 struct icmp6_hdr *icp; local
1085 icp = (struct icmp6_hdr *)outpacket;
1087 icp->icmp6_type = ICMP6_ECHO_REQUEST;
1088 icp->icmp6_code = 0;
1089 icp->icmp6_cksum = 0;
1090 icp->icmp6_id = ident;
1091 icp->icmp6_seq = htons(seq);
1280 struct icmp6_hdr *icp; local
1306 icp = (struct icmp6_hdr *)(buf + hlen);
1317 icp
[all...]
/freebsd-11-stable/usr.sbin/rtsold/
H A Drtsol.c246 struct icmp6_hdr *icp; local
304 icp = (struct icmp6_hdr *)rcvmhdr.msg_iov[0].iov_base;
306 if (icp->icmp6_type != ND_ROUTER_ADVERT) {
312 "invalid icmp type(%d) from %s on %s", icp->icmp6_type,
319 if (icp->icmp6_code != 0) {
321 "invalid icmp code(%d) from %s on %s", icp->icmp6_code,
363 nd_ra = (struct nd_router_advert *)icp;
397 raoptp = (char *)icp + sizeof(struct nd_router_advert);
398 while (raoptp < (char *)icp + msglen) {
410 if ((char *)RA_OPT_NEXT_HDR(raoptp) > (char *)icp
[all...]
/freebsd-11-stable/usr.sbin/rtadvd/
H A Drtadvd.c718 struct icmp6_hdr *icp; local
787 icp = (struct icmp6_hdr *)(ip + 1); /* XXX: ext. hdr? */
794 icp = (struct icmp6_hdr *)rcvmhdr.msg_iov[0].iov_base;
797 switch (icp->icmp6_type) {
814 if (icp->icmp6_code) {
818 icp->icmp6_code,
833 rs_input(i, (struct nd_router_solicit *)icp, pi, &rcvfrom);
859 if (icp->icmp6_code) {
863 icp->icmp6_code,
878 ra_input(i, (struct nd_router_advert *)icp, p
[all...]
/freebsd-11-stable/contrib/traceroute/
H A Dtraceroute.c1401 register struct icmp *icp; local
1416 icp = (struct icmp *)(buf + hlen);
1418 icp = (struct icmp *)buf;
1420 type = icp->icmp_type;
1421 code = icp->icmp_code;
1427 pmtu = ntohs(icp->icmp_nextmtu);
1429 pmtu = ntohs(((struct my_pmtu *)&icp->icmp_void)->ipm_nextmtu);
1434 && (*proto->check)((u_char *)icp, (u_char)seq))
1440 hip = &icp->icmp_ip;
1441 hiplen = ((u_char *)icp
[all...]
/freebsd-11-stable/contrib/tcpdump/
H A Dprint-icmp6.c630 const struct icmp6_hdr *icp, u_int len)
632 return nextproto6_cksum(ndo, ip6, (const uint8_t *)(const void *)icp, len, len,
1414 const struct icmp6_hdr *icp = (const struct icmp6_hdr *) bp; local
1424 ND_TCHECK(icp->icmp6_data16[1]);
1425 ngroups = EXTRACT_16BITS(&icp->icmp6_data16[1]);
1472 const struct icmp6_hdr *icp = (const struct icmp6_hdr *) bp; local
1483 ND_TCHECK(icp->icmp6_data16[0]);
1484 mrc = EXTRACT_16BITS(&icp->icmp6_data16[0]);
629 icmp6_cksum(netdissect_options *ndo, const struct ip6_hdr *ip6, const struct icmp6_hdr *icp, u_int len) argument
/freebsd-11-stable/sys/netinet6/
H A Dicmp6.c321 struct icmp6_hdr *icp; local
325 icp = (struct icmp6_hdr *)(mtod(m, caddr_t) + off);
327 IP6_EXTHDR_GET(icp, struct icmp6_hdr *, m, off,
328 sizeof(*icp));
329 if (icp == NULL) {
334 if (icp->icmp6_type < ICMP6_ECHO_REQUEST ||
335 icp->icmp6_type == ND_REDIRECT) {

Completed in 168 milliseconds