Mercurial > hg > dhcpcd
changeset 4486:ecc12563d4ad draft
sun: Simplify initialisation of the multicast destination
| author | Roy Marples <roy@marples.name> |
|---|---|
| date | Fri, 26 Apr 2019 13:16:16 +0000 |
| parents | 0f490b4cde2a |
| children | 6635eac6eb05 b792f1688220 |
| files | src/ipv6nd.c |
| diffstat | 1 files changed, 1 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ipv6nd.c Fri Apr 26 11:38:45 2019 +0100 +++ b/src/ipv6nd.c Fri Apr 26 13:16:16 2019 +0000 @@ -160,12 +160,6 @@ #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 @@ { 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);
