… | |
… | |
145 | void configuration::init () |
145 | void configuration::init () |
146 | { |
146 | { |
147 | memset (this, 0, sizeof (*this)); |
147 | memset (this, 0, sizeof (*this)); |
148 | |
148 | |
149 | mtu = DEFAULT_MTU; |
149 | mtu = DEFAULT_MTU; |
|
|
150 | nfmark = 0; |
150 | rekey = DEFAULT_REKEY; |
151 | rekey = DEFAULT_REKEY; |
151 | keepalive = DEFAULT_KEEPALIVE; |
152 | keepalive = DEFAULT_KEEPALIVE; |
152 | llevel = L_INFO; |
153 | llevel = L_INFO; |
153 | ip_proto = IPPROTO_GRE; |
154 | ip_proto = IPPROTO_GRE; |
154 | #if ENABLE_ICMP |
155 | #if ENABLE_ICMP |
… | |
… | |
330 | conf.rekey = atoi (val); |
331 | conf.rekey = atoi (val); |
331 | else if (!strcmp (var, "keepalive")) |
332 | else if (!strcmp (var, "keepalive")) |
332 | conf.keepalive = atoi (val); |
333 | conf.keepalive = atoi (val); |
333 | else if (!strcmp (var, "mtu")) |
334 | else if (!strcmp (var, "mtu")) |
334 | conf.mtu = atoi (val); |
335 | conf.mtu = atoi (val); |
|
|
336 | else if (!strcmp (var, "nfmark")) |
|
|
337 | conf.nfmark = atoi (val); |
335 | else if (!strcmp (var, "if-up")) |
338 | else if (!strcmp (var, "if-up")) |
336 | free (conf.script_if_up), conf.script_if_up = strdup (val); |
339 | free (conf.script_if_up), conf.script_if_up = strdup (val); |
337 | else if (!strcmp (var, "node-up")) |
340 | else if (!strcmp (var, "node-up")) |
338 | free (conf.script_node_up), conf.script_node_up = strdup (val); |
341 | free (conf.script_node_up), conf.script_node_up = strdup (val); |
339 | else if (!strcmp (var, "node-down")) |
342 | else if (!strcmp (var, "node-down")) |