… | |
… | |
134 | return _("tincd compatibility layer"); |
134 | return _("tincd compatibility layer"); |
135 | } |
135 | } |
136 | |
136 | |
137 | tap_device::tap_device () |
137 | tap_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 (1); |
149 | } |
151 | } |
150 | } |
152 | } |
151 | |
153 | |
152 | tap_device::~tap_device () |
154 | tap_device::~tap_device () |