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

Comparing gvpe/src/device-tincd.C (file contents):
Revision 1.7 by pcg, Thu Oct 16 20:13:21 2003 UTC vs.
Revision 1.10 by pcg, Thu Jan 29 18:55:10 2004 UTC

1/* 1/*
2 device-tincd.C -- include one of the tincd low level implementations. 2 device-tincd.C -- include one of the tincd low level implementations.
3 Copyright (C) 2003 Marc Lehmann <pcg@goof.com> 3 Copyright (C) 2003-2004 Marc Lehmann <pcg@goof.com>
4 4
5 This program is free software; you can redistribute it and/or modify 5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by 6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or 7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version. 8 (at your option) any later version.
134 return _("tincd compatibility layer"); 134 return _("tincd compatibility layer");
135} 135}
136 136
137tap_device::tap_device () 137tap_device::tap_device ()
138{ 138{
139 device = "(null)";
140
139 if (setup_device ()) 141 if (setup_device ())
140 { 142 {
141 slog (L_DEBUG, _("interface %s initialized"), info ()); 143 slog (L_DEBUG, _("interface %s on %s initialized"), info (), device);
142 fd = device_fd; 144 fd = device_fd;
143 strcpy (ifrname, iface); 145 strcpy (ifrname, iface);
144 } 146 }
145 else 147 else
146 { 148 {
147 slog (L_ERR, _("error while configuring tincd device (%s)"), info ()); 149 slog (L_ERR, _("error while configuring tincd device %s on %s"), info (), device);
148 exit (1); 150 exit (EXIT_FAILURE);
149 } 151 }
150} 152}
151 153
152tap_device::~tap_device () 154tap_device::~tap_device ()
153{ 155{

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines