summaryrefslogtreecommitdiff
path: root/llmnr.c
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2015-02-16 10:42:16 +0100
committerTobias Klauser <tklauser@distanz.ch>2015-02-16 10:42:16 +0100
commite06c7eeb845da73eac03dc35018bbf279ddd42ad (patch)
tree0fcef26bc9df08b7a31f0068041d4a1a2c0b89ca /llmnr.c
parent44284c82189845f22b6b3e8a93b7b2822e5b0742 (diff)
all: Remove trailing whitespaces
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'llmnr.c')
-rw-r--r--llmnr.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/llmnr.c b/llmnr.c
index 4029efb..8b5b387 100644
--- a/llmnr.c
+++ b/llmnr.c
@@ -81,7 +81,7 @@ static void llmnr_respond(unsigned int ifindex, const struct llmnr_hdr *hdr,
if (qclass == LLMNR_QCLASS_IN) {
size_t i, n, response_len;
unsigned char family = AF_UNSPEC;
- /*
+ /*
* arbitrary restriction to 16 addresses per interface for the
* sake of a simple, atomic interface
*/
@@ -108,7 +108,7 @@ static void llmnr_respond(unsigned int ifindex, const struct llmnr_hdr *hdr,
log_info("Responding with %zu addresses\n", n);
- /*
+ /*
* This is the max response length (i.e. using all IPv6
* addresses). We might not use all of it.
*/
@@ -132,7 +132,7 @@ static void llmnr_respond(unsigned int ifindex, const struct llmnr_hdr *hdr,
for (i = 0; i < n; i++) {
void *addr;
size_t addr_size;
-
+
if (addrs[i].ss_family == AF_INET) {
struct sockaddr_in *sin = (struct sockaddr_in *)&addrs[i];
addr = &sin->sin_addr;
@@ -146,7 +146,7 @@ static void llmnr_respond(unsigned int ifindex, const struct llmnr_hdr *hdr,
continue;
}
- /*
+ /*
* NAME
*
* TODO: Implement message compression (RFC 1035,
@@ -186,7 +186,7 @@ static void llmnr_packet_process(unsigned int ifindex, const uint8_t *pktbuf, si
const uint8_t *query;
size_t query_len;
uint8_t name_len;
-
+
if (sa->sa_family == AF_INET)
addr = &((const struct sockaddr_in *)sa)->sin_addr;
else if (sa->sa_family == AF_INET6)