diff --git a/files/dawn.config b/files/dawn.config index 4051456..f6dcc67 100644 --- a/files/dawn.config +++ b/files/dawn.config @@ -1,5 +1,5 @@ config settings network - option broadcast_ip '10.0.0.255' + option broadcast_ip '226.94.1.1' option broadcast_port '1025' option shared_key 'Niiiiiiiiiiiiiik' option iv 'Niiiiiiiiiiiiiik' diff --git a/files/mac_list b/files/mac_list new file mode 100644 index 0000000..e69de29 diff --git a/src/main.c b/src/main.c index dba35be..446ef6b 100644 --- a/src/main.c +++ b/src/main.c @@ -135,7 +135,7 @@ int main(int argc, char **argv) { return 1; } - init_socket_runopts(opt_broadcast_ip, opt_broadcast_port, 1); + init_socket_runopts(opt_broadcast_ip, opt_broadcast_port, 0); dawn_init_ubus(ubus_socket, opt_hostapd_dir); diff --git a/src/network/multicastsocket.c b/src/network/multicastsocket.c index 5fed812..a3e89b7 100644 --- a/src/network/multicastsocket.c +++ b/src/network/multicastsocket.c @@ -19,7 +19,7 @@ int setup_multicast_socket(const char *_multicast_ip, unsigned short _multicast_ memset(addr, 0, sizeof(*addr)); addr->sin_family = AF_INET; - addr->sin_addr.s_addr = htonl (INADDR_ANY); + addr->sin_addr.s_addr = inet_addr(_multicast_ip); addr->sin_port = htons (_multicast_port); if ((sock = socket(PF_INET, SOCK_DGRAM, 0)) == -1) {