ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/gvpe/src/conf.C
(Generate patch)

Comparing gvpe/src/conf.C (file contents):
Revision 1.25 by pcg, Mon May 10 20:13:09 2004 UTC vs.
Revision 1.26 by pcg, Wed May 12 13:32:13 2004 UTC

97 free (hostname); 97 free (hostname);
98} 98}
99 99
100void configuration::init () 100void 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
490configuration::configuration () 488configuration::configuration ()
491{ 489{
490 asprintf (&confbase, "%s/vpe", CONFDIR);
491
492 init (); 492 init ();
493} 493}
494 494
495configuration::~configuration () 495configuration::~configuration ()
496{ 496{

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines