/freebsd-9.3-release/sys/netinet/ |
H A D | ip_icmp.c | 212 register struct icmp *icp; local 298 icp = mtod(m, struct icmp *); 300 icp->icmp_type = type; 302 icp->icmp_gwaddr.s_addr = dest; 304 icp->icmp_void = 0; 310 icp->icmp_pptr = code; 314 icp->icmp_nextmtu = htons(mtu); 317 icp->icmp_code = code; 323 m_copydata(n, 0, icmplen, (caddr_t)&icp->icmp_ip); 324 nip = &icp 359 struct icmp *icp; local 897 register struct icmp *icp; local [all...] |
H A D | tcp_subr.c | 1337 struct icmp *icp; local 1371 icp = (struct icmp *)((caddr_t)ip 1398 mtu = ntohs(icp->icmp_nextmtu);
|
/freebsd-9.3-release/sbin/ping/ |
H A D | ping.c | 943 struct icmp *icp; local 948 icp = (struct icmp *)outpack; 949 icp->icmp_type = icmp_type; 950 icp->icmp_code = 0; 951 icp->icmp_cksum = 0; 952 icp->icmp_seq = htons(ntransmitted); 953 icp->icmp_id = ident; /* ID */ 963 icp->icmp_otime = htonl((now.tv_sec % (24*60*60)) 974 icp->icmp_cksum = in_cksum((u_short *)icp, c 1016 struct icmp *icp; local 1422 pr_icmph(struct icmp *icp) argument [all...] |
/freebsd-9.3-release/usr.sbin/timed/timed/ |
H A D | measure.c | 78 register struct icmp *icp = (struct icmp *) packet; local 189 icp = (struct icmp *)(packet + (ip->ip_hl << 2)); 191 || icp->icmp_type != ICMP_TSTAMPREPLY 192 || icp->icmp_id != oicp->icmp_id 193 || icp->icmp_seq < seqno 194 || icp->icmp_seq >= oicp->icmp_seq) 198 sendtime = ntohl(icp->icmp_otime); 207 histime1 = ntohl(icp->icmp_rtime); 208 histime2 = ntohl(icp->icmp_ttime);
|
/freebsd-9.3-release/contrib/ipfilter/ipsend/ |
H A D | iptests.c | 586 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-9.3-release/sbin/ping6/ |
H A D | ping6.c | 1293 struct icmp6_hdr *icp; local 1302 icp = (struct icmp6_hdr *)outpack; 1304 memset(icp, 0, sizeof(*icp)); 1305 icp->icmp6_cksum = 0; 1310 icp->icmp6_type = ICMP6_NI_QUERY; 1311 icp->icmp6_code = ICMP6_NI_SUBJ_IPV6; 1325 icp->icmp6_type = ICMP6_NI_QUERY; 1326 icp->icmp6_code = 0; /* code field is always 0 */ 1337 icp 1406 myechoreply(const struct icmp6_hdr *icp) argument 1496 struct icmp6_hdr *icp; local 2315 pr_icmph(struct icmp6_hdr *icp, u_char *end) argument [all...] |
/freebsd-9.3-release/usr.sbin/traceroute6/ |
H A D | traceroute6.c | 1042 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-9.3-release/contrib/traceroute/ |
H A D | traceroute.c | 1290 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-9.3-release/usr.sbin/rtsold/ |
H A D | rtsol.c | 246 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-9.3-release/contrib/tcpdump/ |
H A D | print-icmp6.c | 198 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-9.3-release/usr.sbin/rtadvd/ |
H A D | rtadvd.c | 728 struct icmp6_hdr *icp; local 797 icp = (struct icmp6_hdr *)(ip + 1); /* XXX: ext. hdr? */ 804 icp = (struct icmp6_hdr *)rcvmhdr.msg_iov[0].iov_base; 807 switch (icp->icmp6_type) { 824 if (icp->icmp6_code) { 828 icp->icmp6_code, 843 rs_input(i, (struct nd_router_solicit *)icp, pi, &rcvfrom); 869 if (icp->icmp6_code) { 873 icp->icmp6_code, 888 ra_input(i, (struct nd_router_advert *)icp, p [all...] |
/freebsd-9.3-release/sys/netinet6/ |
H A D | icmp6.c | 318 struct icmp6_hdr *icp; local 322 icp = (struct icmp6_hdr *)(mtod(m, caddr_t) + off); 324 IP6_EXTHDR_GET(icp, struct icmp6_hdr *, m, off, 325 sizeof(*icp)); 326 if (icp == NULL) { 331 if (icp->icmp6_type < ICMP6_ECHO_REQUEST || 332 icp->icmp6_type == ND_REDIRECT) {
|
/freebsd-9.3-release/etc/ |
H A D | services | 71 msg-icp 29/tcp #MSG ICP 72 msg-icp 29/udp #MSG ICP
|