diff options
-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); |