diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2007-06-13 04:55:50 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2007-06-13 04:55:50 +0000 |
commit | c6b777bbf60e8aa42982d6ed8122f4bc9d13f414 (patch) | |
tree | 19962b37966c9efeb83d21ed7d5813f553a7f07b /sys/netinet/ip_carp.c | |
parent | 78753f914ca72fc245c43765fa257caae8827e23 (diff) |
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@
Diffstat (limited to 'sys/netinet/ip_carp.c')
-rw-r--r-- | sys/netinet/ip_carp.c | 4 |
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, |