diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2007-06-23 16:15:27 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2007-06-23 16:15:27 +0000 |
commit | deb16f49586cb7f79a016b007952e4003b95e16a (patch) | |
tree | d2507fb1a00e42ea81d416b87b790877c95c13ba /sys/netinet/ip_carp.c | |
parent | 15708836df98827a775489ebe142a6cc9b2a0335 (diff) |
use a masked destination network instead of the interface ip for the
destination of the route belonging to the carp interface.
ok mpf@ claudio@
Diffstat (limited to 'sys/netinet/ip_carp.c')
-rw-r--r-- | sys/netinet/ip_carp.c | 4 |
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] = |