summaryrefslogtreecommitdiff
path: root/sys/netinet
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2007-05-06 12:20:05 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2007-05-06 12:20:05 +0000
commit0dd73baa6b5a2a9b7d6745abad0ae4871fdb1b99 (patch)
tree4e49aa6b8ec18f51eb1c19afb3e7ab641364b246 /sys/netinet
parent15ca6453e8a60a907c2630bc450b8295a0ef2ed1 (diff)
do not fill RTAX_GATEWAY for RTM_DELETE, ok claudio
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/ip_carp.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/netinet/ip_carp.c b/sys/netinet/ip_carp.c
index 056776950ad..0897483fbd5 100644
--- a/sys/netinet/ip_carp.c
+++ b/sys/netinet/ip_carp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_carp.c,v 1.136 2007/05/04 12:39:39 henning Exp $ */
+/* $OpenBSD: ip_carp.c,v 1.137 2007/05/06 12:20:04 henning Exp $ */
/*
* Copyright (c) 2002 Michael Shalayeff. All rights reserved.
@@ -400,7 +400,6 @@ carp_setroute(struct carp_softc *sc, int cmd)
/* Remove the existing host route, if any */
bzero(&info, sizeof(info));
info.rti_info[RTAX_DST] = ifa->ifa_addr;
- info.rti_info[RTAX_GATEWAY] = ifa->ifa_addr;
info.rti_info[RTAX_NETMASK] = ifa->ifa_netmask;
info.rti_flags = RTF_HOST;
error = rtrequest1(RTM_DELETE, &info, NULL, 0);
@@ -443,7 +442,6 @@ carp_setroute(struct carp_softc *sc, int cmd)
RTF_CLONING)) {
bzero(&info, sizeof(info));
info.rti_info[RTAX_DST] = &sa;
- info.rti_info[RTAX_GATEWAY] = ifa->ifa_addr;
info.rti_info[RTAX_NETMASK] = ifa->ifa_netmask;
error = rtrequest1(RTM_DELETE, &info, NULL, 0);
rt_missmsg(RTM_DELETE, &info, info.rti_flags, NULL,