diff options
| author | Roy Marples <roy@marples.name> | 2019-04-26 13:16:16 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2019-04-26 13:16:16 +0000 |
| commit | e275f24027bd15ee15fc774cf2626926bc2402a2 (patch) | |
| tree | 84ef604855d173f0099a0ca47f48873150e75ad0 | |
| parent | fcc399eeb7bea265b285825f6b7b3b59e7796f43 (diff) | |
| download | dhcpcd-e275f24027bd15ee15fc774cf2626926bc2402a2.tar.xz | |
sun: Simplify initialisation of the multicast destination
| -rw-r--r-- | src/ipv6nd.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/ipv6nd.c b/src/ipv6nd.c index 08b850e9..b5e503cc 100644 --- a/src/ipv6nd.c +++ b/src/ipv6nd.c @@ -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); |
