Commit d73c32c1 authored by Evan Hunt's avatar Evan Hunt
Browse files

[master] error in sockaddr unit test

4614.	[test]		Fixed an error in the sockaddr unit test. [RT #45146]
parent d39ab744
4614. [test] Fixed an error in the sockaddr unit test. [RT #45146]
4613. [func] By default, the maximum size of a zone journal file
is now twice the size of the zone's contents (there
is little benefit to a journal larger than this).
......
......@@ -102,18 +102,18 @@ ATF_TC_BODY(sockaddr_isnetzero, tc) {
UNUSED(tc);
for (i = 0; i < sizeof(data4)/sizeof(data4[0]); i++) {
in.s_addr = inet_addr(data4[0].string);
in.s_addr = inet_addr(data4[i].string);
isc_sockaddr_fromin(&addr, &in, 1);
r = isc_sockaddr_isnetzero(&addr);
ATF_CHECK_EQ(r, data4[0].expect);
ATF_CHECK_EQ_MSG(r, data4[i].expect, "%s", data4[i].string);
}
for (i = 0; i < sizeof(data6)/sizeof(data6[0]); i++) {
ret = inet_pton(AF_INET6, "::ffff:127.0.0.1", &in6);
ret = inet_pton(AF_INET6, data6[i].string, &in6);
ATF_CHECK_EQ(ret, 1);
isc_sockaddr_fromin6(&addr, &in6, 1);
r = isc_sockaddr_isnetzero(&addr);
ATF_CHECK_EQ(r, data6[0].expect);
ATF_CHECK_EQ_MSG(r, data6[i].expect, "%s", data6[i].string);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment