From: Patrik Flykt Date: Fri, 12 May 2017 13:48:36 +0000 (+0300) Subject: icmp6-util: Move multicast address definitions X-Git-Tag: v234~191^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e2e8122838565670b34f0dbed320c3b2a949f135;p=platform%2Fupstream%2Fsystemd.git icmp6-util: Move multicast address definitions As the Router Advertisment sending code needs these multicast address definitions, move them to the header file. --- diff --git a/src/libsystemd-network/icmp6-util.h b/src/libsystemd-network/icmp6-util.h index 5cf63cb..13c237f 100644 --- a/src/libsystemd-network/icmp6-util.h +++ b/src/libsystemd-network/icmp6-util.h @@ -21,6 +21,14 @@ #include +#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);