Home | History | Annotate | Download | only in ping6

Lines Matching refs:ni

1436 	struct icmp6_nodeinfo *ni;
1470 ni = (struct icmp6_nodeinfo *)buf;
1546 } else if (icp->icmp6_type == ICMP6_NI_REPLY && mynireply(ni)) {
1547 seq = ntohs(*(u_int16_t *)ni->icmp6_ni_nonce);
1563 switch (ntohs(ni->ni_code)) {
1567 printf("refused, type 0x%x", ntohs(ni->ni_type));
1570 printf("unknown, type 0x%x", ntohs(ni->ni_type));
1574 ntohs(ni->ni_code), ntohs(ni->ni_type));
1578 switch (ntohs(ni->ni_qtype)) {
1583 pr_suptypes(ni, end - (u_char *)ni);
1586 pr_nodeaddr(ni, end - (u_char *)ni);
1590 cp = (u_char *)ni + ICMP6_NIRLEN;
1606 (const u_char *)(ni + 1), dnsname,
1630 switch (ni->ni_code) {
1641 if ((end - (u_char *)ni) < ICMP6_NIRLEN) {
1650 if (!(ni->ni_flags & NI_FQDN_FLAG_VALIDTTL)) {
1668 cp = (u_char *)ni + ICMP6_NIRLEN;
1877 pr_suptypes(struct icmp6_nodeinfo *ni /* ni->qtype must be SUPTYPES */,
1892 cp = (u_char *)(ni + 1);
1893 end = ((u_char *)ni) + nilen;
1899 if (ni->ni_flags & NI_SUPTYPE_FLAG_COMPRESS)
1907 if ((ni->ni_flags & NI_SUPTYPE_FLAG_COMPRESS) == 0) {
1937 if ((ni->ni_flags & NI_SUPTYPE_FLAG_COMPRESS) != 0)
1943 pr_nodeaddr(struct icmp6_nodeinfo *ni, /* ni->qtype must be NODEADDR */
1946 u_char *cp = (u_char *)(ni + 1);
1953 switch (ni->ni_code) {
1961 if (ni->ni_flags & NI_NODEADDR_FLAG_TRUNCATE)
2196 struct icmp6_nodeinfo *ni;
2312 ni = (struct icmp6_nodeinfo *)icp;
2313 l = end - (u_char *)(ni + 1);
2315 switch (ntohs(ni->ni_qtype)) {
2336 switch (ni->ni_code) {
2339 inet_ntop(AF_INET6, ni + 1, ntop_buf,
2342 niqcode[ni->ni_code], ntop_buf);
2353 if (end == (u_char *)(ni + 1)) {
2357 printf(", subject=%s", niqcode[ni->ni_code]);
2358 cp = (const u_char *)(ni + 1);
2367 inet_ntop(AF_INET, ni + 1, ntop_buf,
2370 niqcode[ni->ni_code], ntop_buf);
2383 ni = (struct icmp6_nodeinfo *)icp;
2385 switch (ntohs(ni->ni_qtype)) {
2406 if (ni->ni_code >= sizeof(nircode) / sizeof(nircode[0]))
2409 printf(", %s", nircode[ni->ni_code]);