mirror of
https://github.com/berlin-open-wireless-lab/DAWN.git
synced 2025-03-09 15:40:12 +00:00
add multicast in config file
This commit is contained in:
parent
23987d68e7
commit
513535be4f
4 changed files with 12 additions and 2 deletions
|
|
@ -19,7 +19,7 @@ int setup_multicast_socket(const char *_multicast_ip, unsigned short _multicast_
|
|||
|
||||
memset(addr, 0, sizeof(*addr));
|
||||
addr->sin_family = AF_INET;
|
||||
addr->sin_addr.s_addr = inet_addr(_multicast_ip);
|
||||
addr->sin_addr.s_addr = inet_addr(_multicast_ip);
|
||||
addr->sin_port = htons (_multicast_port);
|
||||
|
||||
if ((sock = socket(PF_INET, SOCK_DGRAM, 0)) == -1) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue