summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2010-12-21 14:59:15 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2010-12-21 14:59:15 +0000
commitcbf6aa2ff6e11f9829fba8abd1af73d1861c7c2f (patch)
treed721ced60fc8cf4fe327b7e20d267a0fc04c4756
parentb45bcd941aeed9f9b5bca41338e52b47d57e7e43 (diff)
Doh! Forgot to set the rdomain when sending out carp announcements.
With and OK phessler@
-rw-r--r--sys/netinet/ip_carp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/netinet/ip_carp.c b/sys/netinet/ip_carp.c
index b987c6c41c1..90e8295e309 100644
--- a/sys/netinet/ip_carp.c
+++ b/sys/netinet/ip_carp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_carp.c,v 1.179 2010/11/26 12:25:52 otto Exp $ */
+/* $OpenBSD: ip_carp.c,v 1.180 2010/12/21 14:59:14 claudio Exp $ */
/*
* Copyright (c) 2002 Michael Shalayeff. All rights reserved.
@@ -1138,6 +1138,7 @@ carp_send_ad(void *v)
len = sizeof(*ip) + sizeof(ch);
m->m_pkthdr.len = len;
m->m_pkthdr.rcvif = NULL;
+ m->m_pkthdr.rdomain = sc->sc_if.if_rdomain;
m->m_len = len;
MH_ALIGN(m, m->m_len);
ip = mtod(m, struct ip *);
@@ -1227,6 +1228,7 @@ carp_send_ad(void *v)
len = sizeof(*ip6) + sizeof(ch);
m->m_pkthdr.len = len;
m->m_pkthdr.rcvif = NULL;
+ /* XXX m->m_pkthdr.rdomain = sc->sc_if.if_rdomain; */
m->m_len = len;
MH_ALIGN(m, m->m_len);
m->m_flags |= M_MCAST;