Lines Matching defs:icp

1259 	struct icmp6_hdr *icp;
1268 icp = (struct icmp6_hdr *)outpack;
1270 memset(icp, 0, sizeof(*icp));
1271 icp->icmp6_cksum = 0;
1276 icp->icmp6_type = ICMP6_NI_QUERY;
1277 icp->icmp6_code = ICMP6_NI_SUBJ_IPV6;
1291 icp->icmp6_type = ICMP6_NI_QUERY;
1292 icp->icmp6_code = 0; /* code field is always 0 */
1303 icp->icmp6_type = ICMP6_NI_QUERY;
1304 icp->icmp6_code = ICMP6_NI_SUBJ_IPV6;
1317 icp->icmp6_type = ICMP6_NI_QUERY;
1318 icp->icmp6_code = ICMP6_NI_SUBJ_FQDN; /*empty*/
1329 icp->icmp6_type = ICMP6_ECHO_REQUEST;
1330 icp->icmp6_code = 0;
1331 icp->icmp6_id = htons(ident);
1332 icp->icmp6_seq = ntohs(seq);
1372 myechoreply(const struct icmp6_hdr *icp)
1374 if (ntohs(icp->icmp6_id) == ident)
1462 struct icmp6_hdr *icp;
1499 icp = (struct icmp6_hdr *)buf;
1512 if (icp->icmp6_type == ICMP6_ECHO_REPLY && myechoreply(icp)) {
1513 seq = ntohs(icp->icmp6_seq);
1516 tpp = (struct tv32 *)(icp + 1);
1581 } else if (icp->icmp6_type == ICMP6_NI_REPLY && mynireply(ni)) {
1732 pr_icmph(icp, end);
2276 pr_icmph(struct icmp6_hdr *icp, u_char *end)
2285 switch (icp->icmp6_type) {
2287 switch (icp->icmp6_code) {
2306 icp->icmp6_code);
2310 pr_retip((struct ip6_hdr *)(icp + 1), end);
2314 (int)ntohl(icp->icmp6_mtu));
2315 pr_retip((struct ip6_hdr *)(icp + 1), end);
2318 switch (icp->icmp6_code) {
2327 icp->icmp6_code);
2330 pr_retip((struct ip6_hdr *)(icp + 1), end);
2334 switch (icp->icmp6_code) {
2345 (void)printf("Bad code(%d) ", icp->icmp6_code);
2349 (u_int32_t)ntohl(icp->icmp6_pptr));
2350 pr_retip((struct ip6_hdr *)(icp + 1), end);
2382 red = (struct nd_redirect *)icp;
2396 ni = (struct icmp6_nodeinfo *)icp;
2467 ni = (struct icmp6_nodeinfo *)icp;
2497 (void)printf("Bad ICMP type: %d", icp->icmp6_type);