Reads mtu from config file now.
FossilOrigin-Name: b591d63a6bf34708f564f549ec508a422dd1a528067a2d53eac19d1ed17a243e
This commit is contained in:
parent
0af9ce0eff
commit
ba76b773c3
@ -82,8 +82,14 @@ int read_config(const char * filename){
|
||||
|
||||
const char *str;
|
||||
str = uci_lookup_option_string(ctx,section,"name");
|
||||
conf_wtpname = strdup(str);
|
||||
if (str)
|
||||
conf_wtpname = strdup(str);
|
||||
|
||||
|
||||
str = uci_lookup_option_string(ctx,section,"mtu");
|
||||
if (str){
|
||||
conf_mtu = atoi(str);
|
||||
}
|
||||
|
||||
return 1;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user