… | |
… | |
97 | free (hostname); |
97 | free (hostname); |
98 | } |
98 | } |
99 | |
99 | |
100 | void configuration::init () |
100 | void configuration::init () |
101 | { |
101 | { |
102 | asprintf (&confbase, "%s/vpe", CONFDIR); |
|
|
103 | |
|
|
104 | memset (this, 0, sizeof (*this)); |
102 | memset (this, 0, sizeof (*this)); |
105 | |
103 | |
106 | mtu = DEFAULT_MTU; |
104 | mtu = DEFAULT_MTU; |
107 | rekey = DEFAULT_REKEY; |
105 | rekey = DEFAULT_REKEY; |
108 | keepalive = DEFAULT_KEEPALIVE; |
106 | keepalive = DEFAULT_KEEPALIVE; |
… | |
… | |
487 | printf ("\n"); |
485 | printf ("\n"); |
488 | } |
486 | } |
489 | |
487 | |
490 | configuration::configuration () |
488 | configuration::configuration () |
491 | { |
489 | { |
|
|
490 | asprintf (&confbase, "%s/vpe", CONFDIR); |
|
|
491 | |
492 | init (); |
492 | init (); |
493 | } |
493 | } |
494 | |
494 | |
495 | configuration::~configuration () |
495 | configuration::~configuration () |
496 | { |
496 | { |