From 46270a414d92e76b7894c1e50982889de32df998 Mon Sep 17 00:00:00 2001 From: Claudio Jeker Date: Thu, 26 Aug 2010 13:28:16 +0000 Subject: Link local multicast requires a scope (either from the src or dst address) be more explicit and force it in dst. OK deraadt@, mcbride@ --- sys/netinet/ip_carp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/netinet/ip_carp.c') 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); -- cgit v1.2.3