diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2010-08-26 13:28:16 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2010-08-26 13:28:16 +0000 |
commit | 46270a414d92e76b7894c1e50982889de32df998 (patch) | |
tree | 604cb4b0a3f3408bd786048f05f3955d2cb92f4c /sys/netinet/ip_carp.c | |
parent | 2833ebf5763f8be8d13275529813c313b0cf07dc (diff) |
Link local multicast requires a scope (either from the src or dst address)
be more explicit and force it in dst.
OK deraadt@, mcbride@
Diffstat (limited to 'sys/netinet/ip_carp.c')
-rw-r--r-- | sys/netinet/ip_carp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netinet/ip_carp.c b/sys/netinet/ip_carp.c index f368d9f83c8..d32d57bd91c 100644 --- a/sys/netinet/ip_carp.c +++ b/sys/netinet/ip_carp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_carp.c,v 1.177 2010/08/02 10:30:00 matthew Exp $ */ +/* $OpenBSD: ip_carp.c,v 1.178 2010/08/26 13:28:15 claudio Exp $ */ /* * Copyright (c) 2002 Michael Shalayeff. All rights reserved. @@ -1247,8 +1247,8 @@ carp_send_ad(void *v) &ip6->ip6_src, sizeof(struct in6_addr)); /* set the multicast destination */ - ip6->ip6_dst.s6_addr8[0] = 0xff; - ip6->ip6_dst.s6_addr8[1] = 0x02; + ip6->ip6_dst.s6_addr16[0] = htons(0xff02); + ip6->ip6_dst.s6_addr16[1] = htons(sc->sc_carpdev->if_index); ip6->ip6_dst.s6_addr8[15] = 0x12; ch_ptr = (void *)ip6 + sizeof(*ip6); |