2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

508. [func] dns_message_parse() can now do a best-effort

attempt, which should allow dig to print more invalid
                        messages.
This commit is contained in:
Brian Wellington
2000-10-06 18:58:30 +00:00
parent 4ed956c5c0
commit 6850cdd449
17 changed files with 143 additions and 95 deletions

View File

@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: wire_test.c,v 1.52 2000/08/01 01:13:29 tale Exp $ */
/* $Id: wire_test.c,v 1.53 2000/10/06 18:58:14 bwelling Exp $ */
#include <config.h>
@@ -125,7 +125,7 @@ main(int argc, char *argv[]) {
result = dns_message_create(mctx, DNS_MESSAGE_INTENTPARSE, &message);
CHECKRESULT(result, "dns_message_create failed");
result = dns_message_parse(message, &source, ISC_FALSE);
result = dns_message_parse(message, &source, 0);
CHECKRESULT(result, "dns_message_parse failed");
result = printmessage(message);
@@ -171,7 +171,7 @@ main(int argc, char *argv[]) {
result = dns_message_create(mctx, DNS_MESSAGE_INTENTPARSE, &message);
CHECKRESULT(result, "dns_message_create failed");
result = dns_message_parse(message, &source, ISC_FALSE);
result = dns_message_parse(message, &source, 0);
CHECKRESULT(result, "dns_message_parse failed");
result = printmessage(message);