Brian Chu and Nikos Mavrogiannopoulos
f2ede537db
Remove addresses from old tun device when stealing leases
2015-04-15 14:59:47 +03:00
Brian Chu and Nikos Mavrogiannopoulos
e4149e3a5b
Set TUNSIFHEAD on the tun device if supported
2015-04-04 19:17:28 +02:00
Brian Chu and Nikos Mavrogiannopoulos
98452e7837
Fix indentation
2015-04-04 16:01:17 +02:00
Brian Chu and Nikos Mavrogiannopoulos
54259a5d4c
Fix invalid return value
2015-04-04 16:01:07 +02:00
Brian Chu and Nikos Mavrogiannopoulos
2a6111eef8
Fix tun IPv6 on platforms that use SIOCAIFADDR_IN6.
...
Also remove a redundant call to SIOCDIFADDR. A freshly
cloned tun interface should not have existing aliases.
2014-06-02 14:37:46 +02:00
Brian Chu and Nikos Mavrogiannopoulos
4001719560
Fix insufficient arguments in an error message.
...
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com >
2014-06-02 11:52:41 +02:00
Brian Chu and Nikos Mavrogiannopoulos
de0388a3f7
Fix tun device usage on *BSD.
...
SIOCSIFADDR is deprecated on *BSD. Instead, use SIOCAIFADDR to
add an alias. Also destroy the tun device with SIOCIFDESTROY when
the client disconnects.
2014-06-02 11:49:08 +02:00