Reads mtu_discovery from config.

FossilOrigin-Name: 334b4cc1912400e71c9f15a0ec42800c71eb5c9fd6652ff4c2bad03b821d318f
This commit is contained in:
7u83@mail.ru 2015-01-18 19:59:55 +00:00
parent 30da4a2634
commit d255843374
1 changed files with 8 additions and 3 deletions

View File

@ -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;