Skip to content

Commit

Permalink
This should fix BONE compatibility a little bit. We still need nonblo…
Browse files Browse the repository at this point in the history
…cking 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
  • Loading branch information
Waldemar Kornewald committed Sep 27, 2004
1 parent ebab3a7 commit 861d934
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion headers/posix/net/if_dl.h
Expand Up @@ -20,7 +20,7 @@ struct sockaddr_dl {
uint8 sdl_nlen; /* interface name length, no trailing 0 reqd. */
uint8 sdl_alen; /* link level address 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 */
};

Expand Down
2 changes: 1 addition & 1 deletion headers/posix/netinet/in.h
Expand Up @@ -77,7 +77,7 @@ struct sockaddr_in {
uint8 sin_family;
uint16 sin_port;
struct in_addr sin_addr;
int8 sin_zero[8];
int8 sin_zero[24];
};
/* the address is therefore at sin_addr.s_addr */

Expand Down

0 comments on commit 861d934

Please sign in to comment.