examples/mld/mld_main.c: ifdef out some bogus logic in the test.
This commit is contained in:
parent
44e2505038
commit
74ac55308c
@ -127,7 +127,9 @@ int mld_main(int argc, char *argv[])
|
|||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
struct sockaddr_in6 host;
|
struct sockaddr_in6 host;
|
||||||
|
#if 0
|
||||||
struct sockaddr_in6 mcast;
|
struct sockaddr_in6 mcast;
|
||||||
|
#endif
|
||||||
struct ipv6_mreq mrec;
|
struct ipv6_mreq mrec;
|
||||||
int sockfd;
|
int sockfd;
|
||||||
int ret;
|
int ret;
|
||||||
@ -199,6 +201,7 @@ int mld_main(int argc, char *argv[])
|
|||||||
printf("Wait a bit...\n");
|
printf("Wait a bit...\n");
|
||||||
sleep(5);
|
sleep(5);
|
||||||
|
|
||||||
|
#if 0 /* REVISIT: This is not right */
|
||||||
/* Send a garbage packet */
|
/* Send a garbage packet */
|
||||||
|
|
||||||
memset(&mcast, 0, sizeof(struct sockaddr_in6));
|
memset(&mcast, 0, sizeof(struct sockaddr_in6));
|
||||||
@ -219,6 +222,7 @@ int mld_main(int argc, char *argv[])
|
|||||||
|
|
||||||
printf("Wait a bit...\n");
|
printf("Wait a bit...\n");
|
||||||
sleep(5);
|
sleep(5);
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Leave the group */
|
/* Leave the group */
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user