This should fix BONE compatibility a little bit. We still need nonblocking IO and a good select() fix.
Explanation: we did not have the same sockaddr_in struct size as BONE, but our netstack wants to have our size, so I changed it to match BONE's. ;) git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9079 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -20,7 +20,7 @@ struct sockaddr_dl {
|
|||||||
uint8 sdl_nlen; /* interface name length, no trailing 0 reqd. */
|
uint8 sdl_nlen; /* interface name length, no trailing 0 reqd. */
|
||||||
uint8 sdl_alen; /* link level address length */
|
uint8 sdl_alen; /* link level address length */
|
||||||
uint8 sdl_slen; /* link layer selector length */
|
uint8 sdl_slen; /* link layer selector length */
|
||||||
char sdl_data[12]; /* minimum work area, can be larger;
|
char sdl_data[24]; /* minimum work area, can be larger;
|
||||||
contains both if name and ll address */
|
contains both if name and ll address */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ struct sockaddr_in {
|
|||||||
uint8 sin_family;
|
uint8 sin_family;
|
||||||
uint16 sin_port;
|
uint16 sin_port;
|
||||||
struct in_addr sin_addr;
|
struct in_addr sin_addr;
|
||||||
int8 sin_zero[8];
|
int8 sin_zero[24];
|
||||||
};
|
};
|
||||||
/* the address is therefore at sin_addr.s_addr */
|
/* the address is therefore at sin_addr.s_addr */
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user