Lines Matching defs:icp

1293 	struct icmp6_hdr *icp;
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->icmp6_type = ICMP6_NI_QUERY;
1338 icp->icmp6_code = ICMP6_NI_SUBJ_IPV6;
1351 icp->icmp6_type = ICMP6_NI_QUERY;
1352 icp->icmp6_code = ICMP6_NI_SUBJ_FQDN; /*empty*/
1363 icp->icmp6_type = ICMP6_ECHO_REQUEST;
1364 icp->icmp6_code = 0;
1365 icp->icmp6_id = htons(ident);
1366 icp->icmp6_seq = ntohs(seq);
1406 myechoreply(const struct icmp6_hdr *icp)
1408 if (ntohs(icp->icmp6_id) == ident)
1496 struct icmp6_hdr *icp;
1533 icp = (struct icmp6_hdr *)buf;
1546 if (icp->icmp6_type == ICMP6_ECHO_REPLY && myechoreply(icp)) {
1547 seq = ntohs(icp->icmp6_seq);
1550 tpp = (struct tv32 *)(icp + 1);
1610 } else if (icp->icmp6_type == ICMP6_NI_REPLY && mynireply(ni)) {
1761 pr_icmph(icp, end);
2315 pr_icmph(struct icmp6_hdr *icp, u_char *end)
2324 switch (icp->icmp6_type) {
2326 switch (icp->icmp6_code) {
2345 icp->icmp6_code);
2349 pr_retip((struct ip6_hdr *)(icp + 1), end);
2353 (int)ntohl(icp->icmp6_mtu));
2354 pr_retip((struct ip6_hdr *)(icp + 1), end);
2357 switch (icp->icmp6_code) {
2366 icp->icmp6_code);
2369 pr_retip((struct ip6_hdr *)(icp + 1), end);
2373 switch (icp->icmp6_code) {
2384 (void)printf("Bad code(%d) ", icp->icmp6_code);
2388 (u_int32_t)ntohl(icp->icmp6_pptr));
2389 pr_retip((struct ip6_hdr *)(icp + 1), end);
2421 red = (struct nd_redirect *)icp;
2435 ni = (struct icmp6_nodeinfo *)icp;
2506 ni = (struct icmp6_nodeinfo *)icp;
2536 (void)printf("Bad ICMP type: %d", icp->icmp6_type);