Fixed a bug that caused libbind.so to not resolve the name:
UDP did not set AF_INET in the sockaddr that is passed to recvfrom(). git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7211 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -338,6 +338,7 @@ static void udp_init(void)
|
|||||||
udb.inp_prev = udb.inp_next = &udb;
|
udb.inp_prev = udb.inp_next = &udb;
|
||||||
udp_sendspace = 9216; /* default size */
|
udp_sendspace = 9216; /* default size */
|
||||||
udp_recvspace = 41600; /* default size */
|
udp_recvspace = 41600; /* default size */
|
||||||
|
udp_in.sin_family = AF_INET;
|
||||||
udp_in.sin_len = sizeof(udp_in);
|
udp_in.sin_len = sizeof(udp_in);
|
||||||
memset(&udpstat, 0, sizeof(udpstat));
|
memset(&udpstat, 0, sizeof(udpstat));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user