Re: [Openvpn-devel] More BSD TUN info.

2002-04-04 Thread James Yonan
>I think the solution would be to have openvpn disable TUN_NO_IP for Linux tun devices and just not care about the actual value when the packets arrive. So if the linux side disables TUN_NO_PI, does the problem go away when connecting to BSD? James

Re: [Openvpn-devel] More BSD TUN info.

2002-04-04 Thread Janne Johansson
> >Yes, but since BSD wont let you choose if you want it or not, and the > chance of changing Linux-TUN-drivers now is slim, I guess it has to be > the application that takes care of this. I'll try to make a patch and > test it, and send you the diff later. > > Some thoughts: > > * probably the

Re: [Openvpn-devel] More BSD TUN info.

2002-04-04 Thread James Yonan
On Thu, 2002-04-04 at 10:46, James Yonan wrote: > >I don't know the openvpn data format, but if 4554 is some sort of > openvtun identifier, you/we/I could add some code that checked for > 0002 followed by 4554 and then strip the first u_int_32 from > the packet and go on. Perhaps a --re

Re: [Openvpn-devel] More BSD TUN info.

2002-04-04 Thread Janne Johansson
On Thu, 2002-04-04 at 10:46, James Yonan wrote: > >I don't know the openvpn data format, but if 4554 is some sort of > openvtun identifier, you/we/I could add some code that checked for > 0002 followed by 4554 and then strip the first u_int_32 from > the packet and go on. Perhaps a --re

Re: [Openvpn-devel] More BSD TUN info.

2002-04-04 Thread James Yonan
>I don't know the openvpn data format, but if 4554 is some sort of openvtun identifier, you/we/I could add some code that checked for 0002 followed by 4554 and then strip the first u_int_32 from the packet and go on. Perhaps a --remote-is-bsd or something similar? Openvpn doesn't look

Re: [Openvpn-devel] More BSD TUN info.

2002-04-02 Thread Janne Johansson
On Wed, 2002-04-03 at 00:44, James Yonan wrote: > >Sorry for "spamming" so much with my porting issues. > > Hey, I think it's great you're trying to port it! Post as much as you want. > > >Now it seems that BSD (at least Free/OpenBSD) TUN devices send AF_INET > as a u_int32_t in network byte ord

Re: [Openvpn-devel] More BSD TUN info.

2002-04-02 Thread James Yonan
>Sorry for "spamming" so much with my porting issues. Hey, I think it's great you're trying to port it! Post as much as you want. >Now it seems that BSD (at least Free/OpenBSD) TUN devices send AF_INET as a u_int32_t in network byte order first, which Linux tun-devs dont. Interesting. We shoul

[Openvpn-devel] More BSD TUN info.

2002-04-02 Thread Janne Johansson
Sorry for "spamming" so much with my porting issues. Now it seems that BSD (at least Free/OpenBSD) TUN devices send AF_INET as a u_int32_t in network byte order first, which Linux tun-devs dont. That's why my last mail contains sending of "0002" as the first 32 bits, it's telling the other en