summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorreyk <reyk@openbsd.org>2007-06-23 16:15:26 +0000
committerreyk <reyk@openbsd.org>2007-06-23 16:15:26 +0000
commit74b7e227c6038e4cb46b25e0689988a77d3d6baf (patch)
tree432b16d9c4d2beafd85a0770d28b09a74c91ec53
parentsync description of "-m" option to reality. mcbride@ ok (diff)
downloadwireguard-openbsd-74b7e227c6038e4cb46b25e0689988a77d3d6baf.tar.xz
wireguard-openbsd-74b7e227c6038e4cb46b25e0689988a77d3d6baf.zip
use a masked destination network instead of the interface ip for the
destination of the route belonging to the carp interface. ok mpf@ claudio@
-rw-r--r--sys/netinet/ip_carp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/ip_carp.c b/sys/netinet/ip_carp.c
index 378abd22e4d..d7d1cbd798c 100644
--- a/sys/netinet/ip_carp.c
+++ b/sys/netinet/ip_carp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_carp.c,v 1.146 2007/06/14 19:31:17 reyk Exp $ */
+/* $OpenBSD: ip_carp.c,v 1.147 2007/06/23 16:15:26 reyk Exp $ */
/*
* Copyright (c) 2002 Michael Shalayeff. All rights reserved.
@@ -459,7 +459,7 @@ carp_setroute(struct carp_softc *sc, int cmd)
ifa->ifa_flags |= RTF_CLONING;
bzero(&info, sizeof(info));
- info.rti_info[RTAX_DST] = ifa->ifa_addr;
+ info.rti_info[RTAX_DST] = &sa;
info.rti_info[RTAX_GATEWAY] = ifa->ifa_addr;
info.rti_info[RTAX_NETMASK] = ifa->ifa_netmask;
info.rti_info[RTAX_LABEL] =