mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-01-29 15:43:56 +00:00
fix missing netmask argument for openwrt compilation.
This commit is contained in:
parent
6dca9fe6bf
commit
45cffb4b2b
7
lsif.c
7
lsif.c
@ -111,7 +111,12 @@ int scrapeProcNetRoute()
|
||||
addr.inet.sin_addr.s_addr=strtol(dest,NULL,16);
|
||||
struct in_addr netmask = {.s_addr=strtol(mask,NULL,16)};
|
||||
broadcast.inet.sin_addr.s_addr=addr.inet.sin_addr.s_addr | ~netmask.s_addr;
|
||||
overlay_interface_register(name,&addr,&broadcast);
|
||||
|
||||
struct socket_address netmask_addr;
|
||||
netmask_addr.inet.sin_family=AF_INET;
|
||||
netmask_addr.inet.sin_addr.s_addr=netmask.s_addr;
|
||||
|
||||
overlay_interface_register(name,&addr,&netmask_addr,&broadcast);
|
||||
}
|
||||
line[0] = '\0';
|
||||
if (fgets(line,1024,f) == NULL)
|
||||
|
Loading…
x
Reference in New Issue
Block a user