I wrote a ipv6 multicast program in order to add membership to some multicast group.
The following code has some problem:
" if (bind(s, (struct sockaddr *)&srv, sizeof(srv)) < 0) {
perror("bind");
return 1;
}"
srv is sockaddr_in6 , when it's sin6_addr is ff01::1 or ff05::1, the program works well. when it's sin6_addr is ff02::1, error "bind:invalid argument" is thrown.
Can you tell me what is the problem?Thank you
Powered by MHonArc 2.6.10