Home | History | Annotate | Download | only in ping6

Lines Matching refs:ni

1293 	struct icmp6_nodeinfo *ni;
1327 ni = (struct icmp6_nodeinfo *)buf;
1408 } else if (icp->icmp6_type == ICMP6_NI_REPLY && mynireply(ni)) {
1409 memcpy(&seq, ni->icmp6_ni_nonce, sizeof(seq));
1426 switch (ntohs(ni->ni_code)) {
1430 printf("refused, type 0x%x", ntohs(ni->ni_type));
1433 printf("unknown, type 0x%x", ntohs(ni->ni_type));
1437 ntohs(ni->ni_code), ntohs(ni->ni_type));
1441 switch (ntohs(ni->ni_qtype)) {
1446 pr_suptypes(ni, end - (u_char *)ni);
1449 pr_nodeaddr(ni, end - (u_char *)ni);
1453 cp = (u_char *)ni + ICMP6_NIRLEN;
1469 (const u_char *)(ni + 1), dnsname,
1493 switch (ni->ni_code) {
1504 if ((end - (u_char *)ni) < ICMP6_NIRLEN) {
1513 if (!(ni->ni_flags & NI_FQDN_FLAG_VALIDTTL)) {
1531 cp = (u_char *)ni + ICMP6_NIRLEN;
1734 pr_suptypes(struct icmp6_nodeinfo *ni /* ni->qtype must be SUPTYPES */,
1749 cp = (u_char *)(ni + 1);
1750 end = ((u_char *)ni) + nilen;
1756 if (ni->ni_flags & NI_SUPTYPE_FLAG_COMPRESS)
1765 if ((ni->ni_flags & NI_SUPTYPE_FLAG_COMPRESS) == 0) {
1799 pr_nodeaddr(struct icmp6_nodeinfo *ni, /* ni->qtype must be NODEADDR */
1802 u_char *cp = (u_char *)(ni + 1);
1809 switch (ni->ni_code) {
1817 if (ni->ni_flags & NI_NODEADDR_FLAG_TRUNCATE)
2051 struct icmp6_nodeinfo *ni;
2170 ni = (struct icmp6_nodeinfo *)icp;
2171 l = end - (u_char *)(ni + 1);
2173 switch (ntohs(ni->ni_qtype)) {
2194 switch (ni->ni_code) {
2197 inet_ntop(AF_INET6, ni + 1, ntop_buf,
2200 niqcode[ni->ni_code], ntop_buf);
2211 if (end == (u_char *)(ni + 1)) {
2215 printf(", subject=%s", niqcode[ni->ni_code]);
2216 cp = (const u_char *)(ni + 1);
2225 inet_ntop(AF_INET, ni + 1, ntop_buf,
2228 niqcode[ni->ni_code], ntop_buf);
2241 ni = (struct icmp6_nodeinfo *)icp;
2243 switch (ntohs(ni->ni_qtype)) {
2264 if (ni->ni_code >= sizeof(nircode) / sizeof(nircode[0]))
2267 printf(", %s", nircode[ni->ni_code]);