Hi,
to follow up on this...
On Sun, Feb 21, 2010 at 09:14:16PM +0100, Gert Doering wrote:
> On Sun, Feb 21, 2010 at 09:03:11PM +0100, Peter Stuge wrote:
> > Gert Doering wrote:
> > > I'll try to figure out how to setup a cross-compile environment
> > > during next week,
> >
> > Some Linux distributions have premade mingw packages.
> >
> > In Gentoo building a toolchain for mingw is as simple as:
> >
> > emerge crossdev && crossdev -t i686-mingw32
[..]
>
> Thanks for that. I was googling in parallel, and that's exactly
> what is going on in the background here right now (crossdev building
> the mingw environment) :-)
>
> I saw a note here on the list a few weeks ago pointing to the opensc
> "build" tool, and I'll try that, as soon as the cross-tools are done.
I have been able to successfully build OpenVPN.exe from Linux, using
the crossdev-provided "i586-mingw32msvc" environment. The resulting
binary is compatible with the openvpn-gui from the "official" installer,
as long as I install my cross-compiled .DLLs as well as openvpn.exe -
the "shipped" DLLs don't work, but that's not really a problem right
now.
My largest problem right now is that the tun/tap driver does not support
IPv6 if in "tun" mode - the code is quite explicit about it...
tap-win32/tapdrvr.c, line 1568:
//===============================================
// In Point-To-Point mode, check to see whether
// packet is ARP or IPv4 (if neither, then drop).
//===============================================
(there's good reasons for what it does)
Now... is there someone who has worked on this before, and can help
me a bit with it?
Initial questions:
- can it be cross-compiled? If yes, how? If no, what needs to be
done on Windows to compile it? (I have *no* experience with Windows,
but I can follow instructions and read documentation).
- what needs to be done to install the driver / replace the existing
driver?
- how does one debug Windows drivers? Is there a printf() as in Linux
that goes to console / syslog?
gert
PS: ifconfig + route work fine, and receiving packets also works (verified
with wireshark). Just sending win->tun->openvpn doesn't
--
USENET is *not* the non-clickable part of WWW!
//www.muc.de/~gert/
Gert Doering - Munich, Germany [email protected]
fax: +49-89-35655025 [email protected]