summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2015-02-16 18:55:06 +0100
committerTobias Klauser <tklauser@distanz.ch>2015-02-16 18:55:06 +0100
commit89dc6f3478c8619ecdfb84cad7aafef9636bda17 (patch)
tree824640086e1df64d2b986ca73f9468915ffc9af6
parent546fd8a2c668e9817f469d0139f936962492919a (diff)
llmnr: Remove some unnecessary log messages
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
-rw-r--r--llmnr.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/llmnr.c b/llmnr.c
index 3dde9e6..f4ea97d 100644
--- a/llmnr.c
+++ b/llmnr.c
@@ -55,7 +55,6 @@ static bool llmnr_name_matches(const uint8_t *query)
for (i = 1; i < llmnr_hostname[0]; i++)
if (tolower(query[i]) != tolower(llmnr_hostname[i]))
return false;
- log_info("hostname matches\n");
return true;
}
@@ -109,8 +108,6 @@ static void llmnr_respond(unsigned int ifindex, const struct llmnr_hdr *hdr,
n = iface_addr_lookup(ifindex, family, addrs, ARRAY_SIZE(addrs));
- log_info("Responding with %zu addresses\n", n);
-
/*
* This is the max response length (i.e. using all IPv6 addresses and
* not message compression). We might not use all of it.
@@ -168,8 +165,6 @@ static void llmnr_respond(unsigned int ifindex, const struct llmnr_hdr *hdr,
memcpy(pkt_put(p, addr_size), addr, addr_size);
}
- log_info("Response packet length: %zu\n", pkt_len(p));
-
if (sendto(sock, p->data, pkt_len(p), 0, sa, sizeof(struct sockaddr_in)) < 0) {
log_err("Failed to send response: %s\n", strerror(errno));
}