projects
/
tinc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d699f30
)
Set $INTERFACE correctly when using ethertap while compiled with tun/tap support.
author
Guus Sliepen
<guus@tinc-vpn.org>
Sun, 24 Mar 2002 16:36:56 +0000
(16:36 +0000)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Sun, 24 Mar 2002 16:36:56 +0000
(16:36 +0000)
src/linux/device.c
patch
|
blob
|
history
diff --git
a/src/linux/device.c
b/src/linux/device.c
index
450fcd1
..
e896f54
100644
(file)
--- a/
src/linux/device.c
+++ b/
src/linux/device.c
@@
-17,7
+17,7
@@
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- $Id: device.c,v 1.1.2.
7 2002/02/18 16:25:19
guus Exp $
+ $Id: device.c,v 1.1.2.
8 2002/03/24 16:36:56
guus Exp $
*/
#include "config.h"
*/
#include "config.h"
@@
-130,6
+130,7
@@
cp
{
device_info = _("Linux ethertap device");
device_type = DEVICE_TYPE_ETHERTAP;
{
device_info = _("Linux ethertap device");
device_type = DEVICE_TYPE_ETHERTAP;
+ interface = rindex(device, '/')?rindex(device, '/')+1:device;
}
syslog(LOG_INFO, _("%s is a %s"), device, device_info);
}
syslog(LOG_INFO, _("%s is a %s"), device, device_info);