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 | 87c334f7904498f744fc33544d98da58ddf03313 (patch) | |
| tree | 84ef604855d173f0099a0ca47f48873150e75ad0 /src/ipv6nd.c | |
| parent | b3258849f07b367d578873964418e0a53a5dd5d2 (diff) | |
| download | dhcpcd-87c334f7904498f744fc33544d98da58ddf03313.tar.xz | |
sun: Simplify initialisation of the multicast destination
Diffstat (limited to 'src/ipv6nd.c')
| -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); |
