Revision 4d22c6c2 net/socket.c
b/net/socket.c | ||
---|---|---|
207 | 207 |
|
208 | 208 |
/* If a bind address is given, only send packets from that address */ |
209 | 209 |
if (localaddr != NULL) { |
210 |
ret = setsockopt(fd, IPPROTO_IP, IP_MULTICAST_IF, localaddr, sizeof(*localaddr)); |
|
210 |
ret = setsockopt(fd, IPPROTO_IP, IP_MULTICAST_IF, |
|
211 |
(const char *)localaddr, sizeof(*localaddr)); |
|
211 | 212 |
if (ret < 0) { |
212 | 213 |
perror("setsockopt(IP_MULTICAST_IF)"); |
213 | 214 |
goto fail; |
Also available in: Unified diff