mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-29 13:38:26 +00:00
use inet_addr() rather than the newer (and beter) inet_aton(). Solaris
doesn't have inet_aton(), and this was quick enough for a test program.
This commit is contained in:
parent
53d53f147b
commit
22c7e1fbca
@ -332,7 +332,7 @@ main(int argc, char *argv[])
|
|||||||
memset(&sockaddr, 0, sizeof(sockaddr));
|
memset(&sockaddr, 0, sizeof(sockaddr));
|
||||||
sockaddr.type.sin.sin_port = htons(80);
|
sockaddr.type.sin.sin_port = htons(80);
|
||||||
sockaddr.type.sin.sin_family = AF_INET;
|
sockaddr.type.sin.sin_family = AF_INET;
|
||||||
INSIST(inet_aton("204.152.184.97", &sockaddr.type.sin.sin_addr) == 1);
|
sockaddr.type.sin.sin_addr.s_addr = inet_addr("204.152.184.97");
|
||||||
addrlen = sizeof(struct sockaddr_in);
|
addrlen = sizeof(struct sockaddr_in);
|
||||||
INSIST(isc_socket_create(socketmgr, isc_socket_tcp,
|
INSIST(isc_socket_create(socketmgr, isc_socket_tcp,
|
||||||
&so2) == ISC_R_SUCCESS);
|
&so2) == ISC_R_SUCCESS);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user