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:
parent
6b1e469ea5
commit
e52a7d1f39
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user