[2.4.2] [FreeBSD] network doesn't work when using ppp (PPtP)

If you've had any problems with Nexuiz, or would like to report bugs, post here.

Moderators: Nexuiz Moderators, Moderators

[2.4.2] [FreeBSD] network doesn't work when using ppp (PPtP)

Postby Sorcerer » Thu Aug 28, 2008 9:46 am

Network subsystem of Nexuiz 2.4.2 doesn't work on FreeBSD 7.0 when using ppp (PPtP) internet connection.

I got errors on the console like: LHNET_Write: sendto returned error

This beause of filling 'family' variable of lhnetaddress_inet4_s structure with host-byte-ordered value.

I fixed this by correcting lhnetaddress_inet4_s structure (see file lhnet.h):
Code: Select all
// compatible with sockaddr_in
typedef struct lhnetaddress_inet4_s
{
-       unsigned short family; // 2
+       unsigned char sin_len;
+       unsigned char family; // 2
        unsigned short port;
        unsigned char address[4];
        unsigned char padding[8]; // to match sockaddr_in


Alternatively, you can use htons() when assigning family variable (in lhnet.c).

BTW: on FreeBSD LHNETADDRESSTYPE_INET6_FAMILY should be == 28, not 10.
Sorcerer
Newbie
 
Posts: 3
Joined: Wed Aug 27, 2008 2:21 pm
Location: Moscow, Russia

Postby esteel » Thu Aug 28, 2008 10:11 am

esteel
Site admin and forum addon
 
Posts: 3924
Joined: Wed Mar 01, 2006 8:27 am

Postby Sorcerer » Thu Aug 28, 2008 10:34 am

Hmm, can't resolve svn.icculus.org. :(
Sorcerer
Newbie
 
Posts: 3
Joined: Wed Aug 27, 2008 2:21 pm
Location: Moscow, Russia

Postby Sorcerer » Thu Aug 28, 2008 11:14 am

Thank you!
Sorcerer
Newbie
 
Posts: 3
Joined: Wed Aug 27, 2008 2:21 pm
Location: Moscow, Russia


Return to Nexuiz - Support / Bugs

Who is online

Users browsing this forum: No registered users and 1 guest

cron