[Also sent to the developers mailing list.]
the attached patch (against the current CVS tree)
enables IPv6 transmission over vtun usig "tun" devices.
I've developed and tested it under FreeBSD-4.5.
Before this patch, vtun used FreeBSD's tun device in
"compatibility" mode, which is restricted to IPv4
traffic. This patch enables the "multi-af" mode for
FreeBSD tun devices (where each packet read/written is
preceded by its address family number in network byte
order). OpenBSD's tun device already uses the same
technique; the vtun code supporting OpenBSD used to
explicitly strip off this information - this patch
removes this restriction. It also adds/strips the
address family prefix for tun devices which do not
(yet) support this, (e.g. Linux), to maintain
I'd very much like to see this included in a future
release (so I don't have to maintain a patched version
for local use :-) - please let me know if there's
anything I can do to improve this patch.
Log in to post a comment.