summaryrefslogtreecommitdiff
path: root/llmnr-query.c
diff options
context:
space:
mode:
authorSchimmelreiter <Ziggy.SpaceRat@gmx.de>2016-04-16 15:20:02 +0200
committerTobias Klauser <tklauser@distanz.ch>2016-08-02 11:16:10 +0200
commitf69b5945892deab9615104b476556e9f2f856ce6 (patch)
tree5be44f37caf5d032febdddcfe7d9997275ab800c /llmnr-query.c
parent00093ae71662ad597ac7db916ff08fe2f18e901d (diff)
llmnr-query: Make query type ANY the default
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'llmnr-query.c')
-rw-r--r--llmnr-query.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/llmnr-query.c b/llmnr-query.c
index de3df26..e35a00e 100644
--- a/llmnr-query.c
+++ b/llmnr-query.c
@@ -57,7 +57,7 @@ static void __noreturn usage_and_exit(int status)
" -i, --interval NUM interval between queries in ms (default: 500)\n"
" -I, --interface NAME send multicast over specified interface\n"
" -t, --timeout NUM time to wait for reply in ms (default: 1000)\n"
- " -T, --type TYPE set query type; must be one of A, AAAA, ANY (default: A)\n"
+ " -T, --type TYPE set query type; must be one of A, AAAA, ANY (default: ANY)\n"
" -6, --ipv6 send queries over IPv6\n"
" -h, --help show this help and exit\n"
" -V, --version show version information and exit\n");
@@ -93,7 +93,7 @@ int main(int argc, char **argv)
const char *query_name, *iface = NULL;
size_t query_name_len;
unsigned long i, count = 1, interval_ms = 500, timeout_ms = 1000;
- uint16_t qtype = LLMNR_QTYPE_A;
+ uint16_t qtype = LLMNR_QTYPE_ANY;
bool ipv6 = false;
struct pkt *p;
static const int TTL = 255;