From 717d4481cb5d0d9db7a3d9660954ea54df763a20 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Fri, 24 Oct 2014 18:43:51 +0100 Subject: [PATCH] adnstest: Support typenum being 0xXX|DDD Signed-off-by: Ian Jackson --- client/adnstest.c | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/client/adnstest.c b/client/adnstest.c index 0e0db03..59a3bbc 100644 --- a/client/adnstest.c +++ b/client/adnstest.c @@ -102,6 +102,7 @@ static void usageerr(const char *why) { "initflags: p use poll(2) instead of select(2)\n" " s use adns_wait with specified query, instead of 0\n" "queryflags: a print status abbrevs instead of strings\n" + "typenum: may be 0x|, or 0x or \n" "exit status: 0 ok (though some queries may have failed)\n" " 1 used by test harness to indicate test failed\n" " 2 unable to submit or init or some such\n" @@ -207,12 +208,19 @@ int main(int argc, char *const *argv) { if (ch==',') tc++; types_a= malloc(sizeof(*types_a)*(tc+1)); if (!types_a) { perror("malloc types"); quitnow(3); } - for (cp= argv[1]+1, ti=0; ti