Lines Matching defs:icp

1264 	struct icmp6_hdr *icp;
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->icmp6_type = ICMP6_NI_QUERY;
1309 icp->icmp6_code = ICMP6_NI_SUBJ_IPV6;
1322 icp->icmp6_type = ICMP6_NI_QUERY;
1323 icp->icmp6_code = ICMP6_NI_SUBJ_FQDN; /*empty*/
1334 icp->icmp6_type = ICMP6_ECHO_REQUEST;
1335 icp->icmp6_code = 0;
1336 icp->icmp6_id = htons(ident);
1337 icp->icmp6_seq = ntohs(seq);
1377 myechoreply(const struct icmp6_hdr *icp)
1379 if (ntohs(icp->icmp6_id) == ident)
1467 struct icmp6_hdr *icp;
1504 icp = (struct icmp6_hdr *)buf;
1517 if (icp->icmp6_type == ICMP6_ECHO_REPLY && myechoreply(icp)) {
1518 seq = ntohs(icp->icmp6_seq);
1521 tpp = (struct tv32 *)(icp + 1);
1586 } else if (icp->icmp6_type == ICMP6_NI_REPLY && mynireply(ni)) {
1737 pr_icmph(icp, end);
2281 pr_icmph(struct icmp6_hdr *icp, u_char *end)
2290 switch (icp->icmp6_type) {
2292 switch (icp->icmp6_code) {
2311 icp->icmp6_code);
2315 pr_retip((struct ip6_hdr *)(icp + 1), end);
2319 (int)ntohl(icp->icmp6_mtu));
2320 pr_retip((struct ip6_hdr *)(icp + 1), end);
2323 switch (icp->icmp6_code) {
2332 icp->icmp6_code);
2335 pr_retip((struct ip6_hdr *)(icp + 1), end);
2339 switch (icp->icmp6_code) {
2350 (void)printf("Bad code(%d) ", icp->icmp6_code);
2354 (u_int32_t)ntohl(icp->icmp6_pptr));
2355 pr_retip((struct ip6_hdr *)(icp + 1), end);
2387 red = (struct nd_redirect *)icp;
2401 ni = (struct icmp6_nodeinfo *)icp;
2472 ni = (struct icmp6_nodeinfo *)icp;
2502 (void)printf("Bad ICMP type: %d", icp->icmp6_type);