Merge pull request #18 from berlin-open-wireless-lab/hotfix/fixing_multicast

fix multicast
This commit is contained in:
Polynomdivision 2017-12-12 22:08:47 +01:00 committed by GitHub
commit 15feeb70d9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View file

@ -1,7 +1,7 @@
config settings network
option broadcast_ip '10.0.0.255'
option broadcast_ip '225.0.0.37'
option broadcast_port '1025'
option multicast '0'
option multicast '1'
option shared_key 'Niiiiiiiiiiiiiik'
option iv 'Niiiiiiiiiiiiiik'

View file

@ -62,7 +62,7 @@ int main(int argc, char **argv) {
char iv[BUFSIZE_DIR];
int multicast = 0;
while ((ch = getopt(argc, argv, "cs:p:i:b:o:h:i:k:v:")) != -1) {
while ((ch = getopt(argc, argv, "cs:p:i:b:o:h:i:k:v:m")) != -1) {
switch (ch) {
case 's':
ubus_socket = optarg;
@ -94,6 +94,7 @@ int main(int argc, char **argv) {
break;
case 'm':
multicast = 1;
break;
default:
break;
}