diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2014-03-18 10:47:35 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2014-03-18 10:47:35 +0000 |
commit | 2aff867b912a01da627f87bed28384b9ee2e2765 (patch) | |
tree | 637790c80de9f5a81226dc4265aac7a6144efc61 /sys/netinet/ip_carp.c | |
parent | 5721fd177e5eed07c78ba3af33aa92587162bc05 (diff) |
Rename rt_gettable() into rtable_get(), swap its arguments to be
coherent with the existing rtable_* functions and document it.
While here fix some other manpage glitches pointed out by jmc@.
Diffstat (limited to 'sys/netinet/ip_carp.c')
-rw-r--r-- | sys/netinet/ip_carp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netinet/ip_carp.c b/sys/netinet/ip_carp.c index 0f383fc90ed..0635b559256 100644 --- a/sys/netinet/ip_carp.c +++ b/sys/netinet/ip_carp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_carp.c,v 1.222 2014/02/13 10:31:42 mpi Exp $ */ +/* $OpenBSD: ip_carp.c,v 1.223 2014/03/18 10:47:34 mpi Exp $ */ /* * Copyright (c) 2002 Michael Shalayeff. All rights reserved. @@ -429,8 +429,8 @@ carp_setroute(struct carp_softc *sc, int cmd) /* Check for our address on another interface */ /* XXX cries for proper API */ - rnh = rt_gettable(ifa->ifa_addr->sa_family, - sc->sc_if.if_rdomain); + rnh = rtable_get(sc->sc_if.if_rdomain, + ifa->ifa_addr->sa_family); rn = rnh->rnh_matchaddr(ifa->ifa_addr, rnh); rt = (struct rtentry *)rn; hr_otherif = (rt && rt->rt_ifp != &sc->sc_if && |