]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
sun: Simplify initialisation of the multicast destination
authorRoy Marples <roy@marples.name>
Fri, 26 Apr 2019 13:16:16 +0000 (13:16 +0000)
committerRoy Marples <roy@marples.name>
Fri, 26 Apr 2019 13:16:16 +0000 (13:16 +0000)
src/ipv6nd.c

index 08b850e954b1b2e7a75b70e11449d5f609fe6dcd..b5e503ccdbc4e023c49e4eb1ea27f2d55b055df9 100644 (file)
@@ -160,12 +160,6 @@ static void ipv6nd_handledata(void *);
 #define IPV6_RECVPKTINFO IPV6_PKTINFO
 #endif
 
-#ifdef __sun
-struct in6_addr all_nodes_mcast = { .s6_addr = {
-    0xff, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
-    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01 } };
-#endif
-
 /* Handy defines */
 #define ipv6nd_free_ra(ra) ipv6nd_freedrop_ra((ra),  0)
 #define ipv6nd_drop_ra(ra) ipv6nd_freedrop_ra((ra),  1)
@@ -238,7 +232,7 @@ ipv6nd_open(struct interface *ifp)
 {
        int s;
        struct ipv6_mreq mreq = {
-           .ipv6mr_multiaddr = all_nodes_mcast,
+           .ipv6mr_multiaddr = IN6ADDR_LINKLOCAL_ALLNODES_INIT,
            .ipv6mr_interface = ifp->index
        };
        struct rs_state *state = RS_STATE(ifp);