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

/freebsd-10.0-release/sys/netinet/
H A Dip_icmp.c217 register struct icmp *icp; local
304 icp = mtod(m, struct icmp *);
306 icp->icmp_type = type;
308 icp->icmp_gwaddr.s_addr = dest;
310 icp->icmp_void = 0;
316 icp->icmp_pptr = code;
320 icp->icmp_nextmtu = htons(mtu);
323 icp->icmp_code = code;
329 m_copydata(n, 0, icmplen, (caddr_t)&icp->icmp_ip);
330 nip = &icp
362 struct icmp *icp; local
884 register struct icmp *icp; local
[all...]
H A Dtcp_subr.c1401 struct icmp *icp; local
1435 icp = (struct icmp *)((caddr_t)ip
1462 mtu = ntohs(icp->icmp_nextmtu);
/freebsd-10.0-release/sbin/ping/
H A Dping.c944 struct icmp *icp; local
949 icp = (struct icmp *)outpack;
950 icp->icmp_type = icmp_type;
951 icp->icmp_code = 0;
952 icp->icmp_cksum = 0;
953 icp->icmp_seq = htons(ntransmitted);
954 icp->icmp_id = ident; /* ID */
964 icp->icmp_otime = htonl((now.tv_sec % (24*60*60))
975 icp->icmp_cksum = in_cksum((u_short *)icp, c
1017 struct icmp *icp; local
1423 pr_icmph(struct icmp *icp) argument
[all...]
/freebsd-10.0-release/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-10.0-release/contrib/ipfilter/ipsend/
H A Diptests.c586 struct icmp *icp; local
596 ip->ip_len = sizeof(*ip) + sizeof(*icp);
597 icp = (struct icmp *)((char *)ip + (IP_HL(ip) << 2));
607 bzero((char *)icp, sizeof(*icp));
609 icp->icmp_type = i;
614 icp->icmp_type = 255;
625 icp->icmp_type = 3;
627 icp->icmp_code = i;
638 icp
[all...]
/freebsd-10.0-release/sbin/ping6/
H A Dping6.c1295 struct icmp6_hdr *icp; local
1304 icp = (struct icmp6_hdr *)outpack;
1306 memset(icp, 0, sizeof(*icp));
1307 icp->icmp6_cksum = 0;
1312 icp->icmp6_type = ICMP6_NI_QUERY;
1313 icp->icmp6_code = ICMP6_NI_SUBJ_IPV6;
1327 icp->icmp6_type = ICMP6_NI_QUERY;
1328 icp->icmp6_code = 0; /* code field is always 0 */
1339 icp
1408 myechoreply(const struct icmp6_hdr *icp) argument
1498 struct icmp6_hdr *icp; local
2317 pr_icmph(struct icmp6_hdr *icp, u_char *end) argument
[all...]
/freebsd-10.0-release/usr.sbin/traceroute6/
H A Dtraceroute6.c1042 struct icmp6_hdr *icp; local
1061 icp = (struct icmp6_hdr *)outpacket;
1063 icp->icmp6_type = ICMP6_ECHO_REQUEST;
1064 icp->icmp6_code = 0;
1065 icp->icmp6_cksum = 0;
1066 icp->icmp6_id = ident;
1067 icp->icmp6_seq = htons(seq);
1190 struct icmp6_hdr *icp; local
1217 icp = (struct icmp6_hdr *)(buf + hlen);
1228 icp
[all...]
/freebsd-10.0-release/contrib/traceroute/
H A Dtraceroute.c1290 register struct icmp *icp; local
1305 icp = (struct icmp *)(buf + hlen);
1307 icp = (struct icmp *)buf;
1309 type = icp->icmp_type;
1310 code = icp->icmp_code;
1316 pmtu = ntohs(icp->icmp_nextmtu);
1318 pmtu = ntohs(((struct my_pmtu *)&icp->icmp_void)->ipm_nextmtu);
1323 && (*proto->check)((u_char *)icp, (u_char)seq))
1329 hip = &icp->icmp_ip;
1330 hiplen = ((u_char *)icp
[all...]
/freebsd-10.0-release/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) {
/freebsd-10.0-release/contrib/tcpdump/
H A Dprint-icmp6.c198 static int icmp6_cksum(const struct ip6_hdr *ip6, const struct icmp6_hdr *icp, argument
201 return (nextproto6_cksum(ip6, (const u_int8_t *)(void *)icp, len,
844 struct icmp6_hdr *icp = (struct icmp6_hdr *) bp; local
854 TCHECK(icp->icmp6_data16[1]);
855 ngroups = EXTRACT_16BITS(&icp->icmp6_data16[1]);
902 struct icmp6_hdr *icp = (struct icmp6_hdr *) bp; local
913 TCHECK(icp->icmp6_data16[0]);
914 mrc = EXTRACT_16BITS(&icp->icmp6_data16[0]);
/freebsd-10.0-release/usr.sbin/rtadvd/
H A Drtadvd.c727 struct icmp6_hdr *icp; local
796 icp = (struct icmp6_hdr *)(ip + 1); /* XXX: ext. hdr? */
803 icp = (struct icmp6_hdr *)rcvmhdr.msg_iov[0].iov_base;
806 switch (icp->icmp6_type) {
823 if (icp->icmp6_code) {
827 icp->icmp6_code,
842 rs_input(i, (struct nd_router_solicit *)icp, pi, &rcvfrom);
868 if (icp->icmp6_code) {
872 icp->icmp6_code,
887 ra_input(i, (struct nd_router_advert *)icp, p
[all...]
/freebsd-10.0-release/sys/netinet6/
H A Dicmp6.c323 struct icmp6_hdr *icp; local
327 icp = (struct icmp6_hdr *)(mtod(m, caddr_t) + off);
329 IP6_EXTHDR_GET(icp, struct icmp6_hdr *, m, off,
330 sizeof(*icp));
331 if (icp == NULL) {
336 if (icp->icmp6_type < ICMP6_ECHO_REQUEST ||
337 icp->icmp6_type == ND_REDIRECT) {
/freebsd-10.0-release/etc/
H A Dservices71 msg-icp 29/tcp #MSG ICP
72 msg-icp 29/udp #MSG ICP

Completed in 222 milliseconds