• Home
  • Raw
  • Download

Lines Matching refs:nih

1380 	struct ni_hdr *nih;  in build_niquery()  local
1383 nih = (struct ni_hdr *)_nih; in build_niquery()
1384 nih->ni_cksum = 0; in build_niquery()
1386 nih->ni_type = ICMPV6_NI_QUERY; in build_niquery()
1387 cc = sizeof(*nih); in build_niquery()
1390 niquery_fill_nonce(ntransmitted + 1, nih->ni_nonce); in build_niquery()
1391 nih->ni_code = ni_subject_type; in build_niquery()
1392 nih->ni_qtype = htons(ni_query); in build_niquery()
1393 nih->ni_flags = ni_flag; in build_niquery()
1394 memcpy(nih + 1, ni_subject, ni_subject_len); in build_niquery()
1451 void pr_niquery_reply_name(struct ni_hdr *nih, int len) in pr_niquery_reply_name() argument
1453 __u8 *h = (__u8 *)(nih + 1); in pr_niquery_reply_name()
1455 __u8 *end = (__u8 *)nih + len; in pr_niquery_reply_name()
1495 void pr_niquery_reply_addr(struct ni_hdr *nih, int len) in pr_niquery_reply_addr() argument
1497 __u8 *h = (__u8 *)(nih + 1); in pr_niquery_reply_addr()
1499 __u8 *end = (__u8 *)nih + len; in pr_niquery_reply_addr()
1506 switch (ntohs(nih->ni_qtype)) { in pr_niquery_reply_addr()
1510 truncated = nih->ni_flags & NI_IPV6ADDR_F_TRUNCATE; in pr_niquery_reply_addr()
1515 truncated = nih->ni_flags & NI_IPV4ADDR_F_TRUNCATE; in pr_niquery_reply_addr()
1550 struct ni_hdr *nih = (struct ni_hdr *)_nih; in pr_niquery_reply() local
1552 switch (nih->ni_code) { in pr_niquery_reply()
1554 switch (ntohs(nih->ni_qtype)) { in pr_niquery_reply()
1556 pr_niquery_reply_name(nih, len); in pr_niquery_reply()
1560 pr_niquery_reply_addr(nih, len); in pr_niquery_reply()
1563 printf(" unknown qtype(0x%02x)", ntohs(nih->ni_qtype)); in pr_niquery_reply()
1573 printf(" unknown code(%02x)", ntohs(nih->ni_code)); in pr_niquery_reply()
1575 printf("; seq=%u;", ntohsp((__u16*)nih->ni_nonce)); in pr_niquery_reply()
1627 struct ni_hdr *nih = (struct ni_hdr *)icmph; in parse_reply() local
1628 int seq = niquery_check_nonce(nih->ni_nonce); in parse_reply()