Lines Matching refs:icp
1231 struct icmp6_hdr *icp;
1240 icp = (struct icmp6_hdr *)outpack;
1242 memset(icp, 0, sizeof(*icp));
1243 icp->icmp6_cksum = 0;
1248 icp->icmp6_type = ICMP6_NI_QUERY;
1249 icp->icmp6_code = ICMP6_NI_SUBJ_IPV6;
1263 icp->icmp6_type = ICMP6_NI_QUERY;
1264 icp->icmp6_code = 0; /* code field is always 0 */
1275 icp->icmp6_type = ICMP6_NI_QUERY;
1276 icp->icmp6_code = ICMP6_NI_SUBJ_IPV6;
1289 icp->icmp6_type = ICMP6_NI_QUERY;
1290 icp->icmp6_code = ICMP6_NI_SUBJ_FQDN; /*empty*/
1301 icp->icmp6_type = ICMP6_ECHO_REQUEST;
1302 icp->icmp6_code = 0;
1303 icp->icmp6_id = htons(ident);
1304 icp->icmp6_seq = ntohs(seq);
1344 myechoreply(const struct icmp6_hdr *icp)
1346 if (ntohs(icp->icmp6_id) == ident)
1435 struct icmp6_hdr *icp;
1469 icp = (struct icmp6_hdr *)buf;
1482 if (icp->icmp6_type == ICMP6_ECHO_REPLY && myechoreply(icp)) {
1483 seq = ntohs(icp->icmp6_seq);
1486 tpp = (struct tv32 *)(icp + 1);
1546 } else if (icp->icmp6_type == ICMP6_NI_REPLY && mynireply(ni)) {
1697 pr_icmph(icp, end);
2192 pr_icmph(struct icmp6_hdr *icp, u_char *end)
2201 switch (icp->icmp6_type) {
2203 switch (icp->icmp6_code) {
2222 icp->icmp6_code);
2226 pr_retip((struct ip6_hdr *)(icp + 1), end);
2230 (int)ntohl(icp->icmp6_mtu));
2231 pr_retip((struct ip6_hdr *)(icp + 1), end);
2234 switch (icp->icmp6_code) {
2243 icp->icmp6_code);
2246 pr_retip((struct ip6_hdr *)(icp + 1), end);
2250 switch (icp->icmp6_code) {
2261 (void)printf("Bad code(%d) ", icp->icmp6_code);
2265 (u_int32_t)ntohl(icp->icmp6_pptr));
2266 pr_retip((struct ip6_hdr *)(icp + 1), end);
2298 red = (struct nd_redirect *)icp;
2312 ni = (struct icmp6_nodeinfo *)icp;
2383 ni = (struct icmp6_nodeinfo *)icp;
2413 (void)printf("Bad ICMP type: %d", icp->icmp6_type);