summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorclaudio <claudio@openbsd.org>2007-06-13 04:55:49 +0000
committerclaudio <claudio@openbsd.org>2007-06-13 04:55:49 +0000
commit6b471e2905744c4c04813424b8453e37b36d8483 (patch)
tree1dbff2818bfd496a710e5819004f258e9858b089
parentSupport the Macbook, Macbook Pro, Mac Mini and possibly the iMac. (diff)
downloadwireguard-openbsd-6b471e2905744c4c04813424b8453e37b36d8483.tar.xz
wireguard-openbsd-6b471e2905744c4c04813424b8453e37b36d8483.zip
There is no need to set RTAX_NETMASK on RTF_HOST routes. RTAX_NETMASK will
be set to NULL as first in rtrequest1() for all host routes. With and OK reyk@
-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 67a0a53dedc..3bbc606e79b 100644
--- a/sys/netinet/ip_carp.c
+++ b/sys/netinet/ip_carp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_carp.c,v 1.144 2007/06/01 02:42:59 mpf Exp $ */
+/* $OpenBSD: ip_carp.c,v 1.145 2007/06/13 04:55:49 claudio Exp $ */
/*
* Copyright (c) 2002 Michael Shalayeff. All rights reserved.
@@ -396,7 +396,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_NETMASK] = ifa->ifa_netmask;
info.rti_flags = RTF_HOST;
error = rtrequest1(RTM_DELETE, &info, NULL, 0);
rt_missmsg(RTM_DELETE, &info, info.rti_flags, NULL,
@@ -427,7 +426,6 @@ carp_setroute(struct carp_softc *sc, int cmd)
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_UP | RTF_HOST;
error = rtrequest1(RTM_ADD, &info, NULL, 0);
rt_missmsg(RTM_ADD, &info, info.rti_flags, NULL,