--- gvpe/src/device-tincd.C 2003/10/16 20:13:21 1.7 +++ gvpe/src/device-tincd.C 2004/01/29 18:55:10 1.10 @@ -1,6 +1,6 @@ /* device-tincd.C -- include one of the tincd low level implementations. - Copyright (C) 2003 Marc Lehmann + Copyright (C) 2003-2004 Marc Lehmann This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -136,16 +136,18 @@ tap_device::tap_device () { + device = "(null)"; + if (setup_device ()) { - slog (L_DEBUG, _("interface %s initialized"), info ()); + slog (L_DEBUG, _("interface %s on %s initialized"), info (), device); fd = device_fd; strcpy (ifrname, iface); } else { - slog (L_ERR, _("error while configuring tincd device (%s)"), info ()); - exit (1); + slog (L_ERR, _("error while configuring tincd device %s on %s"), info (), device); + exit (EXIT_FAILURE); } }