diff options
Diffstat (limited to 'src/multicast.cc')
-rw-r--r-- | src/multicast.cc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/multicast.cc b/src/multicast.cc index b64bfde..80be2ce 100644 --- a/src/multicast.cc +++ b/src/multicast.cc @@ -33,7 +33,7 @@ #include <sys/param.h> #include <arpa/inet.h> -Multicast::Multicast(Info *i) +Multicast::Multicast(Info *i, char *addr, int port) { /* Multicast adresses: @@ -42,11 +42,14 @@ Multicast::Multicast(Info *i) 224.0.0.5 OSPF routers 224.0.0.6 OSPF designated routers 224.0.0.12 DHCP server/relay agent +server_multicast = true +server_multicast_addr = "224.0.0.1" +server_multicast_port = 1234 */ // Multicast to all systems on this subnet - char addr[] = "224.0.0.1"; - int port = 1234; + // char addr[] = "224.0.0.1"; + // int port = 1234; info = i; if(!UDPOpen(addr, port)) info->error("Error creating socket %s:%d", addr, port); |