projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Treat virtual network device as tap if Mode = switch or hub.
[tinc]
/
src
/
bsd
/
device.c
diff --git
a/src/bsd/device.c
b/src/bsd/device.c
index
419c38f
..
3e61431
100644
(file)
--- a/
src/bsd/device.c
+++ b/
src/bsd/device.c
@@
-1,7
+1,7
@@
/*
device.c -- Interaction BSD tun/tap device
Copyright (C) 2001-2005 Ivo Timmermans,
/*
device.c -- Interaction BSD tun/tap device
Copyright (C) 2001-2005 Ivo Timmermans,
- 2001-200
6
Guus Sliepen <guus@tinc-vpn.org>
+ 2001-200
7
Guus Sliepen <guus@tinc-vpn.org>
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
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
@@
-78,7
+78,7
@@
bool setup_device(void) {
return false;
}
} else {
return false;
}
} else {
- if(strstr(device, "tap"))
+ if(strstr(device, "tap")
|| routing_mode != RMODE_ROUTER
)
device_type = DEVICE_TYPE_TAP;
}
device_type = DEVICE_TYPE_TAP;
}