Fix a bug whereby group addresses were incorrectly computed in the test.

[Since the change to strict refcounting for in_multi objects, this test
 began to fail; formerly the refcount was a count of the number of requests
 for a given address, NOT a count of pointers to the object.]
This commit is contained in:
Bruce M Simpson 2007-04-09 19:44:08 +00:00
parent 6b1e469ea5
commit e52a7d1f39

View File

@ -680,7 +680,7 @@ test_ip_multicast_membership(int sock, const char *socktypename)
* route is pointing.
*/
for (i = 0; i < nmcastgroups; i++) {
mreq.imr_multiaddr.s_addr = htonl((basegroup | i));
mreq.imr_multiaddr.s_addr = htonl((basegroup + i));
mreq.imr_interface.s_addr = INADDR_ANY;
inet_ntop(AF_INET, &mreq.imr_multiaddr, addrbuf, sizeof(addrbuf));
if (verbose)
@ -693,7 +693,7 @@ test_ip_multicast_membership(int sock, const char *socktypename)
}
}
for (i = 0; i < nmcastgroups; i++) {
mreq.imr_multiaddr.s_addr = htonl((basegroup | i));
mreq.imr_multiaddr.s_addr = htonl((basegroup + i));
mreq.imr_interface.s_addr = INADDR_ANY;
inet_ntop(AF_INET, &mreq.imr_multiaddr, addrbuf, sizeof(addrbuf));
if (verbose)