mirror of
https://github.com/berlin-open-wireless-lab/DAWN.git
synced 2025-03-09 15:40:12 +00:00
fix multicast
This commit is contained in:
parent
edf60681cc
commit
49a9a8734f
1 changed files with 2 additions and 1 deletions
|
@ -54,7 +54,8 @@ int setup_multicast_socket(const char *_multicast_ip, unsigned short _multicast_
|
|||
}
|
||||
|
||||
/* Join the broadcast group: */
|
||||
command.imr_multiaddr.s_addr = inet_addr(_multicast_ip);
|
||||
//command.imr_multiaddr.s_addr = inet_addr(_multicast_ip);
|
||||
command.imr_interface.s_addr = htonl (INADDR_ANY);
|
||||
if (command.imr_multiaddr.s_addr == -1) {
|
||||
perror("Wrong multicast address!\n");
|
||||
exit(EXIT_FAILURE);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue