Lines Matching refs:question

186 	struct name_question	question;
203 question.name = answer->name;
206 packet.qdcount = 1; /* question entries */
207 packet.question = &question;
332 struct name_question *question;
410 question = packet->question;
413 if ((entry = smb_netbios_cache_lookup(question->name)) != 0) {
516 (void) smb_first_level_name_encode(npb->question[i].name,
521 BE_OUT16(heap, npb->question[i].question_type);
524 BE_OUT16(heap, npb->question[i].question_class);
712 /* scan is in position for question entries */
719 npb->question = (struct name_question *)heap;
723 npb->question[i].name = (struct name_entry *)heap;
770 npb->question[i].name);
772 npb->question[i].name);
774 /* Couldn't decode the question name */
786 npb->question[i].question_type = BE_IN16(scan); scan += 2;
787 npb->question[i].question_class = BE_IN16(scan); scan += 2;
959 smb_send_name_registration_request(int bcast, struct name_question *question,
970 type = question->name->name[15];
974 smb_netbios_name_logf(question->name);
975 question->name->attributes &= ~NAME_ATTR_LOCAL;
997 packet.qdcount = 1; /* question entries */
998 packet.question = question;
1006 if (IS_UNIQUE(question->name->attributes) &&
1007 (is_multihome((char *)(question->name->name))))
1032 smb_send_name_refresh_request(int bcast, struct name_question *question,
1045 type = question->name->name[15];
1048 smb_netbios_name_logf(question->name);
1049 question->name->attributes &= ~NAME_ATTR_LOCAL;
1074 destination = &question->name->addr_list;
1089 if (IS_UNIQUE(question->name->attributes) &&
1090 (is_multihome((char *)(question->name->name))))
1093 packet.qdcount = 1; /* question entries */
1094 packet.question = question;
1144 packet.qdcount = 0; /* question entries */
1145 packet.question = NULL;
1153 answer.name = original_packet->question->name;
1168 struct name_question *question, struct resource_record *additional)
1196 packet.qdcount = 1; /* question entries */
1197 packet.question = question;
1232 packet.qdcount = 0; /* question entries */
1233 packet.question = NULL;
1241 answer.name = original_packet->question->name;
1255 smb_send_name_query_request(int bcast, struct name_question *question)
1283 packet.qdcount = 1; /* question entries */
1284 packet.question = question;
1334 packet.qdcount = 0; /* question entries */
1335 packet.question = NULL;
1398 packet.qdcount = 0; /* question entries */
1399 packet.question = NULL;
1407 answer.name = original_packet->question->name;
1414 original_packet->question->name->scope);
1524 struct name_question question;
1535 question.name = name;
1537 * question.name->attributes |= NAME_NB_FLAGS_ONT_B;
1540 question.question_type = NAME_QUESTION_TYPE_NB;
1541 question.question_class = NAME_QUESTION_CLASS_IN;
1556 rc |= smb_send_name_registration_request(BROADCAST, &question,
1568 struct name_question question;
1570 question.name = name;
1571 question.question_type = NAME_QUESTION_TYPE_NB;
1572 question.question_class = NAME_QUESTION_CLASS_IN;
1574 return (smb_send_name_query_request(BROADCAST, &question));
1580 struct name_question question;
1589 question.name = name;
1590 question.question_type = NAME_QUESTION_TYPE_NB;
1591 question.question_class = NAME_QUESTION_CLASS_IN;
1616 &question, &additional));
1622 struct name_question question;
1632 question.name = name;
1633 question.question_type = NAME_QUESTION_TYPE_NB;
1634 question.question_class = NAME_QUESTION_CLASS_IN;
1649 rc |= smb_send_name_registration_request(UNICAST, &question,
1662 struct name_question question;
1672 question.name = name;
1673 question.question_type = NAME_QUESTION_TYPE_NB;
1674 question.question_class = NAME_QUESTION_CLASS_IN;
1689 rc |= smb_send_name_refresh_request(UNICAST, &question,
1701 struct name_question question;
1706 question.name = name;
1707 question.name->attributes |= NAME_NB_FLAGS_ONT_P;
1708 question.question_type = NAME_QUESTION_TYPE_NB;
1709 question.question_class = NAME_QUESTION_CLASS_IN;
1711 return (smb_send_name_query_request(UNICAST, &question));
1717 struct name_question question;
1726 question.name = name;
1727 question.name->attributes |= NAME_NB_FLAGS_ONT_P;
1728 question.question_type = NAME_QUESTION_TYPE_NB;
1729 question.question_class = NAME_QUESTION_CLASS_IN;
1753 &question, &additional);
1833 struct name_question *question;
1836 question = packet->question;
1842 if ((question == 0) || (additional == 0))
1847 name = question->name;
1854 smb_netbios_cache_update_entry(entry, question->name);
1858 (void) smb_netbios_cache_insert(question->name);
1865 * based on the type of question entry.
1868 /* All query requests have to have question entry */
1869 if (question == 0)
1872 if (question->question_type == NAME_QUESTION_TYPE_NB) {
1873 name = question->name;
1881 if (question->question_type == NAME_QUESTION_TYPE_NBSTAT) {
1886 name = question->name;
1913 struct name_question *question;
1916 question = packet->question;
1929 if ((question == 0) || (additional == 0))
1934 name = question->name;
1954 * based on the type of question entry.
1957 /* All query requests have to have question entry */
1958 if (question == 0)
1961 if (question->question_type == NAME_QUESTION_TYPE_NB) {
1962 name = question->name;
1980 if (question->question_type == NAME_QUESTION_TYPE_NBSTAT) {
1985 name = question->name;