Home | History | Annotate | Download | only in ping6

Lines Matching refs:ni

1460 	struct icmp6_nodeinfo *ni;
1494 ni = (struct icmp6_nodeinfo *)buf;
1570 } else if (icp->icmp6_type == ICMP6_NI_REPLY && mynireply(ni)) {
1571 seq = ntohs(*(u_int16_t *)ni->icmp6_ni_nonce);
1587 switch (ntohs(ni->ni_code)) {
1591 printf("refused, type 0x%x", ntohs(ni->ni_type));
1594 printf("unknown, type 0x%x", ntohs(ni->ni_type));
1598 ntohs(ni->ni_code), ntohs(ni->ni_type));
1602 switch (ntohs(ni->ni_qtype)) {
1607 pr_suptypes(ni, end - (u_char *)ni);
1610 pr_nodeaddr(ni, end - (u_char *)ni);
1614 cp = (u_char *)ni + ICMP6_NIRLEN;
1630 (const u_char *)(ni + 1), dnsname,
1654 switch (ni->ni_code) {
1665 if ((end - (u_char *)ni) < ICMP6_NIRLEN) {
1674 if (!(ni->ni_flags & NI_FQDN_FLAG_VALIDTTL)) {
1692 cp = (u_char *)ni + ICMP6_NIRLEN;
1901 pr_suptypes(struct icmp6_nodeinfo *ni /* ni->qtype must be SUPTYPES */,
1916 cp = (u_char *)(ni + 1);
1917 end = ((u_char *)ni) + nilen;
1923 if (ni->ni_flags & NI_SUPTYPE_FLAG_COMPRESS)
1931 if ((ni->ni_flags & NI_SUPTYPE_FLAG_COMPRESS) == 0) {
1961 if ((ni->ni_flags & NI_SUPTYPE_FLAG_COMPRESS) != 0)
1967 pr_nodeaddr(struct icmp6_nodeinfo *ni, /* ni->qtype must be NODEADDR */
1970 u_char *cp = (u_char *)(ni + 1);
1977 switch (ni->ni_code) {
1985 if (ni->ni_flags & NI_NODEADDR_FLAG_TRUNCATE)
2220 struct icmp6_nodeinfo *ni;
2336 ni = (struct icmp6_nodeinfo *)icp;
2337 l = end - (u_char *)(ni + 1);
2339 switch (ntohs(ni->ni_qtype)) {
2360 switch (ni->ni_code) {
2363 inet_ntop(AF_INET6, ni + 1, ntop_buf,
2366 niqcode[ni->ni_code], ntop_buf);
2377 if (end == (u_char *)(ni + 1)) {
2381 printf(", subject=%s", niqcode[ni->ni_code]);
2382 cp = (const u_char *)(ni + 1);
2391 inet_ntop(AF_INET, ni + 1, ntop_buf,
2394 niqcode[ni->ni_code], ntop_buf);
2407 ni = (struct icmp6_nodeinfo *)icp;
2409 switch (ntohs(ni->ni_qtype)) {
2430 if (ni->ni_code >= sizeof(nircode) / sizeof(nircode[0]))
2433 printf(", %s", nircode[ni->ni_code]);