[PATCH] Remove addresses from old tun device when stealing leases

Brian Chu cynix at cynix.org
Mon Apr 13 07:25:44 PDT 2015

Hi Nikos,

On FreeBSD (and probably OpenBSD), when a user resumes a session using
cookie (e.g. when quickly switching between Wi-Fi and 3G on a mobile
device), we must first remove addresses from the old tun device before
assigning them to the new tun device, otherwise the assignment may
fail with something like "main: tun.c:197: tun1: Error setting IPv6:
Address already in use". I have attached a patch to fix this issue.
This problem was reported to me by hshh <hunreal at gmail.com>.

I'm not sure if the same behaviour is required on Linux -- probably
not, since nobody has reported this problem so far.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Remove-addresses-from-old-tun-device-when-stealing-l.patch
Type: application/octet-stream
Size: 2249 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/openconnect-devel/attachments/20150414/d14126ed/attachment.obj>

More information about the openconnect-devel mailing list