diff options
author | Bret Lambert <blambert@cvs.openbsd.org> | 2012-09-19 16:14:02 +0000 |
---|---|---|
committer | Bret Lambert <blambert@cvs.openbsd.org> | 2012-09-19 16:14:02 +0000 |
commit | 946940f045090e841444b8c249cbd1e57c6b7f52 (patch) | |
tree | ca6548bd755726da23faee1439de01a9a33a04b0 /sys/netinet | |
parent | 469f7c2cf97e7fa45f29a81b0ccbf4d3436722d5 (diff) |
Make rt_lookup return a pointer to an rtentry struct instead of
to a radix_node struct.
The radix tree pushdown continues.
ok claudio@
Diffstat (limited to 'sys/netinet')
-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 ac2b058d036..c35645e9151 100644 --- a/sys/netinet/ip_carp.c +++ b/sys/netinet/ip_carp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_carp.c,v 1.196 2012/09/19 15:31:23 henning Exp $ */ +/* $OpenBSD: ip_carp.c,v 1.197 2012/09/19 16:14:01 blambert Exp $ */ /* * Copyright (c) 2002 Michael Shalayeff. All rights reserved. @@ -445,7 +445,7 @@ carp_setroute(struct carp_softc *sc, int cmd) bcopy(ifa->ifa_addr, &sa, sizeof(sa)); satosin(&sa)->sin_addr.s_addr = satosin(ifa->ifa_netmask )->sin_addr.s_addr & satosin(&sa)->sin_addr.s_addr; - rt = (struct rtentry *)rt_lookup(&sa, + rt = rt_lookup(&sa, ifa->ifa_netmask, sc->sc_if.if_rdomain); nr_ourif = (rt && rt->rt_ifp == &sc->sc_if); |