Reads mtu from config file now.

FossilOrigin-Name: b591d63a6bf34708f564f549ec508a422dd1a528067a2d53eac19d1ed17a243e
This commit is contained in:
7u83@mail.ru 2015-01-18 19:33:35 +00:00
parent 0af9ce0eff
commit ba76b773c3
1 changed files with 7 additions and 1 deletions

View File

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