summaryrefslogtreecommitdiff
path: root/sys/netinet/ip_carp.c
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2007-11-22 02:04:15 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2007-11-22 02:04:15 +0000
commit926ed21a0dd6305a8fbfcea7291cde5f604928af (patch)
tree681fa5cd98c6ba2d382be914229873edf402dbd9 /sys/netinet/ip_carp.c
parente56cf8c4d25f5cfd3a23aa89cb80d72aea7fda37 (diff)
pass the carp ifp to rt_missmsg() when generating the RTM_ADD messages
so the resulting messages have ifindex set and the routing daemons can correctly indentify that route as connected. ok mcbride
Diffstat (limited to 'sys/netinet/ip_carp.c')
-rw-r--r--sys/netinet/ip_carp.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/netinet/ip_carp.c b/sys/netinet/ip_carp.c
index 54006c26ce2..946646243fb 100644
--- a/sys/netinet/ip_carp.c
+++ b/sys/netinet/ip_carp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_carp.c,v 1.155 2007/11/22 01:21:40 mpf Exp $ */
+/* $OpenBSD: ip_carp.c,v 1.156 2007/11/22 02:04:14 henning Exp $ */
/*
* Copyright (c) 2002 Michael Shalayeff. All rights reserved.
@@ -475,8 +475,8 @@ carp_setroute(struct carp_softc *sc, int cmd)
info.rti_info[RTAX_GATEWAY] = ifa->ifa_addr;
info.rti_flags = RTF_UP | RTF_HOST;
error = rtrequest1(RTM_ADD, &info, NULL, 0);
- rt_missmsg(RTM_ADD, &info, info.rti_flags, NULL,
- error, 0);
+ rt_missmsg(RTM_ADD, &info, info.rti_flags,
+ &sc->sc_if, error, 0);
}
if (!hr_otherif || nr_ourif || !rt) {
if (nr_ourif && !(rt->rt_flags &
@@ -501,8 +501,8 @@ carp_setroute(struct carp_softc *sc, int cmd)
error = rtrequest1(RTM_ADD, &info, NULL, 0);
if (error == 0)
ifa->ifa_flags |= IFA_ROUTE;
- rt_missmsg(RTM_ADD, &info, info.rti_flags, NULL,
- error, 0);
+ rt_missmsg(RTM_ADD, &info, info.rti_flags,
+ &sc->sc_if, error, 0);
}
break;
case RTM_DELETE: