diff options
-rw-r--r-- | iface.c | 2 | ||||
-rw-r--r-- | llmnr.c | 10 | ||||
-rw-r--r-- | socket.c | 2 |
3 files changed, 7 insertions, 7 deletions
@@ -52,7 +52,7 @@ struct iface_record { static struct list_head iface_list_head; static pthread_mutex_t iface_list_mutex; -size_t iface_addr_lookup(unsigned int ifindex, unsigned char family, +size_t iface_addr_lookup(unsigned int ifindex, unsigned char family, struct sockaddr_storage *addrs, size_t addrs_size) { struct iface_record *rec; @@ -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) @@ -99,7 +99,7 @@ int socket_open_rtnl(void) memset(&sa, 0, sizeof(sa)); sa.nl_family = AF_NETLINK; - /* + /* * listen for following events: * - network interface create/delete/up/down * - IPv4 address add/delete |