Lines Matching refs:ni6
905 struct icmp6_nodeinfo *ni6;
914 ni6 = (struct icmp6_nodeinfo *)bp;
917 switch (ni6->ni_type) {
926 TCHECK2(*dp, sizeof(*ni6));
927 ni6 = (struct icmp6_nodeinfo *)dp;
929 switch (EXTRACT_16BITS(&ni6->ni_qtype)) {
935 i = EXTRACT_16BITS(&ni6->ni_flags);
945 i = ni6->ni_flags;
962 if (ni6->ni_qtype == NI_QTYPE_NOOP ||
963 ni6->ni_qtype == NI_QTYPE_SUPTYPES) {
964 if (siz != sizeof(*ni6))
974 if (siz == sizeof(*ni6)) {
981 switch (ni6->ni_code) {
984 sizeof(*ni6) + sizeof(struct in6_addr)))
986 if (siz != sizeof(*ni6) + sizeof(struct in6_addr)) {
992 getname6((const u_char *)(ni6 + 1)));
996 cp = (const u_char *)(ni6 + 1);
1012 if (!TTEST2(*dp, sizeof(*ni6) + sizeof(struct in_addr)))
1014 if (siz != sizeof(*ni6) + sizeof(struct in_addr)) {
1020 getname((const u_char *)(ni6 + 1)));
1039 ni6 = (struct icmp6_nodeinfo *)dp;
1042 switch (ni6->ni_code) {
1052 if (siz != sizeof(*ni6))
1059 if (siz != sizeof(*ni6))
1065 if (ni6->ni_code != ICMP6_NI_SUCCESS) {
1071 switch (EXTRACT_16BITS(&ni6->ni_qtype)) {
1076 if (siz != sizeof(*ni6))
1084 i = EXTRACT_16BITS(&ni6->ni_flags);
1092 cp = (const u_char *)(ni6 + 1) + 4;
1106 if ((EXTRACT_16BITS(&ni6->ni_flags) & 0x01) != 0)
1107 printf(" [TTL=%u]", *(u_int32_t *)(ni6 + 1));
1113 i = sizeof(*ni6);
1122 i = ni6->ni_flags;