Reads mtu_discovery from config.
FossilOrigin-Name: 334b4cc1912400e71c9f15a0ec42800c71eb5c9fd6652ff4c2bad03b821d318f
This commit is contained in:
parent
30da4a2634
commit
d255843374
@ -53,7 +53,7 @@ int read_config(const char * filename){
|
||||
struct uci_package * pkg;
|
||||
|
||||
if (filename == NULL){
|
||||
filename = "wtp";
|
||||
filename = "wtp_uci.conf";
|
||||
}
|
||||
cw_dbg(DBG_ALL,"Reading config file %s",filename);
|
||||
|
||||
@ -87,9 +87,14 @@ int read_config(const char * filename){
|
||||
|
||||
|
||||
str = uci_lookup_option_string(ctx,section,"mtu");
|
||||
if (str){
|
||||
if (str)
|
||||
conf_mtu = atoi(str);
|
||||
}
|
||||
|
||||
str = uci_lookup_option_string(ctx,section,"mtu_discovery");
|
||||
printf("MTU Disco = %s\n",str);
|
||||
if (str)
|
||||
conf_mtu_discovery = atoi(str);
|
||||
|
||||
|
||||
return 1;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user