Lines Matching refs:nih
1386 struct ni_hdr *nih; in build_niquery() local
1389 nih = (struct ni_hdr *)_nih; in build_niquery()
1390 nih->ni_cksum = 0; in build_niquery()
1392 nih->ni_type = ICMPV6_NI_QUERY; in build_niquery()
1393 cc = sizeof(*nih); in build_niquery()
1396 niquery_fill_nonce(ntransmitted + 1, nih->ni_nonce); in build_niquery()
1397 nih->ni_code = ni_subject_type; in build_niquery()
1398 nih->ni_qtype = htons(ni_query); in build_niquery()
1399 nih->ni_flags = ni_flag; in build_niquery()
1400 memcpy(nih + 1, ni_subject, ni_subject_len); in build_niquery()
1457 void pr_niquery_reply_name(struct ni_hdr *nih, int len) in pr_niquery_reply_name() argument
1459 __u8 *h = (__u8 *)(nih + 1); in pr_niquery_reply_name()
1461 __u8 *end = (__u8 *)nih + len; in pr_niquery_reply_name()
1501 void pr_niquery_reply_addr(struct ni_hdr *nih, int len) in pr_niquery_reply_addr() argument
1503 __u8 *h = (__u8 *)(nih + 1); in pr_niquery_reply_addr()
1505 __u8 *end = (__u8 *)nih + len; in pr_niquery_reply_addr()
1512 switch (ntohs(nih->ni_qtype)) { in pr_niquery_reply_addr()
1516 truncated = nih->ni_flags & NI_IPV6ADDR_F_TRUNCATE; in pr_niquery_reply_addr()
1521 truncated = nih->ni_flags & NI_IPV4ADDR_F_TRUNCATE; in pr_niquery_reply_addr()
1556 struct ni_hdr *nih = (struct ni_hdr *)_nih; in pr_niquery_reply() local
1558 switch (nih->ni_code) { in pr_niquery_reply()
1560 switch (ntohs(nih->ni_qtype)) { in pr_niquery_reply()
1562 pr_niquery_reply_name(nih, len); in pr_niquery_reply()
1566 pr_niquery_reply_addr(nih, len); in pr_niquery_reply()
1569 printf(" unknown qtype(0x%02x)", ntohs(nih->ni_qtype)); in pr_niquery_reply()
1579 printf(" unknown code(%02x)", ntohs(nih->ni_code)); in pr_niquery_reply()
1581 printf("; seq=%u;", ntohsp((__u16*)nih->ni_nonce)); in pr_niquery_reply()
1633 struct ni_hdr *nih = (struct ni_hdr *)icmph; in parse_reply() local
1634 int seq = niquery_check_nonce(nih->ni_nonce); in parse_reply()