diff --git a/src/network/multicastsocket.c b/src/network/multicastsocket.c index 0269c95..49ac223 100644 --- a/src/network/multicastsocket.c +++ b/src/network/multicastsocket.c @@ -12,6 +12,7 @@ #include "multicastsocket.h" // TODO: Consider to remove this... +// based on: http://openbook.rheinwerk-verlag.de/linux_unix_programmierung/Kap11-018.htm static struct ip_mreq command; @@ -30,7 +31,7 @@ int setup_multicast_socket(const char *_multicast_ip, unsigned short _multicast_ exit(EXIT_FAILURE); } - /* Mehr Prozessen erlauben, denselben Port zu nutzen */ + // allow multiple processes to use the same port loop = 1; if (setsockopt(sock, SOL_SOCKET, @@ -46,7 +47,7 @@ int setup_multicast_socket(const char *_multicast_ip, unsigned short _multicast_ exit(EXIT_FAILURE); } - /* Broadcast auf dieser Maschine zulassen */ + // allow broadcast loop = 1; if (setsockopt(sock, IPPROTO_IP, @@ -56,7 +57,7 @@ int setup_multicast_socket(const char *_multicast_ip, unsigned short _multicast_ exit(EXIT_FAILURE); } - /* Join the broadcast group: */ + // join broadcast group command.imr_multiaddr.s_addr = inet_addr(_multicast_ip); command.imr_interface.s_addr = htonl (INADDR_ANY); if (command.imr_multiaddr.s_addr == -1) { diff --git a/src/utils/ubus.c b/src/utils/ubus.c index df94286..2429afb 100644 --- a/src/utils/ubus.c +++ b/src/utils/ubus.c @@ -447,7 +447,6 @@ static int handle_auth_req(struct blob_attr *msg) { } // maybe send here that the client is connected? - printf("ALLOW AUTH!\n"); return WLAN_STATUS_SUCCESS; }