Lines Matching defs:section
687 dns_namelist_t *section)
691 for (curr = ISC_LIST_TAIL(*section);
867 dns_namelist_t *section;
872 section = &msg->sections[DNS_SECTION_QUESTION];
904 * Run through the section, looking to see if this name
909 result = findname(&name2, name, section);
912 * If it is the first name in the section, accept it.
915 * in the question section, append to the section. Note that
916 * here in the question section this is illegal, so return
922 if (!ISC_LIST_EMPTY(*section))
924 ISC_LIST_APPEND(*section, name, link);
1018 update(dns_section_t section, dns_rdataclass_t rdclass) {
1019 if (section == DNS_SECTION_PREREQUISITE)
1022 if (section == DNS_SECTION_UPDATE)
1042 dns_namelist_t *section;
1050 section = &msg->sections[sectionid];
1091 * If there was no question section, we may not yet have
1104 * section, bail.
1132 * additional data section.
1142 * must be in the additional data section, and
1151 * A TKEY must be in the additional section if this
1152 * is a query, and the answer section if this is a
1255 ISC_LIST_APPEND(*section, name, link);
1595 dns_namelist_t *section;
1606 section = &msg->sections[sectionid];
1623 name = ISC_LIST_HEAD(*section);
1860 dns_message_firstname(dns_message_t *msg, dns_section_t section) {
1861 REQUIRE(VALID_NAMED_SECTION(section));
1863 msg->cursors[section] = ISC_LIST_HEAD(msg->sections[section]);
1865 if (msg->cursors[section] == NULL)
1872 dns_message_nextname(dns_message_t *msg, dns_section_t section) {
1873 REQUIRE(VALID_NAMED_SECTION(section));
1874 REQUIRE(msg->cursors[section] != NULL);
1876 msg->cursors[section] = ISC_LIST_NEXT(msg->cursors[section], link);
1878 if (msg->cursors[section] == NULL)
1885 dns_message_currentname(dns_message_t *msg, dns_section_t section,
1888 REQUIRE(VALID_NAMED_SECTION(section));
1890 REQUIRE(msg->cursors[section] != NULL);
1892 *name = msg->cursors[section];
1896 dns_message_findname(dns_message_t *msg, dns_section_t section,
1911 REQUIRE(VALID_SECTION(section));
1922 &msg->sections[section]);
1947 dns_section_t section)
1952 REQUIRE(VALID_NAMED_SECTION(section));
1954 ISC_LIST_APPEND(msg->sections[section], name, link);
2300 dns_message_sectiontotext(dns_message_t *msg, dns_section_t section,
2310 REQUIRE(VALID_SECTION(section));
2312 if (ISC_LIST_EMPTY(msg->sections[section]))
2318 ADD_STRING(target, sectiontext[section]);
2320 ADD_STRING(target, updsectiontext[section]);
2326 result = dns_message_firstname(msg, section);
2332 dns_message_currentname(msg, section, &name);
2336 if (section == DNS_SECTION_ANSWER &&
2345 if (section == DNS_SECTION_QUESTION) {
2360 result = dns_message_nextname(msg, section);
2519 dns_pseudosection_t section,
2536 REQUIRE(VALID_PSEUDOSECTION(section));
2538 switch (section) {