summaryrefslogtreecommitdiffstats
path: root/src/libsystemd-network
diff options
context:
space:
mode:
authorPatrik Flykt <patrik.flykt@linux.intel.com>2017-05-12 15:48:36 +0200
committerPatrik Flykt <patrik.flykt@linux.intel.com>2017-05-15 13:49:50 +0200
commite2e8122838565670b34f0dbed320c3b2a949f135 (patch)
tree33531e6443e4c9973bfdb3afdbe4a7b301bc8941 /src/libsystemd-network
parenticmp6-util: Bind Router Advertisement socket (diff)
downloadsystemd-e2e8122838565670b34f0dbed320c3b2a949f135.tar.xz
systemd-e2e8122838565670b34f0dbed320c3b2a949f135.zip
icmp6-util: Move multicast address definitions
As the Router Advertisment sending code needs these multicast address definitions, move them to the header file.
Diffstat (limited to 'src/libsystemd-network')
-rw-r--r--src/libsystemd-network/icmp6-util.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libsystemd-network/icmp6-util.h b/src/libsystemd-network/icmp6-util.h
index 5cf63cb2c5..13c237f5fb 100644
--- a/src/libsystemd-network/icmp6-util.h
+++ b/src/libsystemd-network/icmp6-util.h
@@ -21,6 +21,14 @@
#include <net/ethernet.h>
+#define IN6ADDR_ALL_ROUTERS_MULTICAST_INIT \
+ { { { 0xff, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02 } } }
+
+#define IN6ADDR_ALL_NODES_MULTICAST_INIT \
+ { { { 0xff, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01 } } }
+
int icmp6_bind_router_solicitation(int index);
int icmp6_bind_router_advertisement(int index);
int icmp6_send_router_solicitation(int s, const struct ether_addr *ether_addr);