diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2014-11-24 12:43:55 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2014-11-24 12:43:55 +0000 |
commit | 88d3d2f0140fb0bce33e7029e4b4f69f5c5c670e (patch) | |
tree | 9ab15697a8d3a9111f28efe44c9cb9a4cd69e5af /share/man/man9 | |
parent | 3d6515a9785bf21590b0eb3f92c88b0dde862911 (diff) |
Rename rt_ifa_addloop() into rt_ifa_addlocal() and make it return an
error code on failure (unchecked for the moment).
ok mikeb@, jmc@
Diffstat (limited to 'share/man/man9')
-rw-r--r-- | share/man/man9/Makefile | 6 | ||||
-rw-r--r-- | share/man/man9/rt_ifa_add.9 | 32 |
2 files changed, 20 insertions, 18 deletions
diff --git a/share/man/man9/Makefile b/share/man/man9/Makefile index 865c72d1c71..ceaa67810b6 100644 --- a/share/man/man9/Makefile +++ b/share/man/man9/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.222 2014/11/04 23:27:02 dlg Exp $ +# $OpenBSD: Makefile,v 1.223 2014/11/24 12:43:54 mpi Exp $ # $NetBSD: Makefile,v 1.4 1996/01/09 03:23:01 thorpej Exp $ # Makefile for section 9 (kernel function and variable) manual pages. @@ -325,8 +325,8 @@ MLINKS+=rssadapt.9 ieee80211_rssadapt_choose.9 \ rssadapt.9 ieee80211_rssadapt_updatestats.9 MLINKS+=route.9 rt_lookup.9 \ route.9 rt_setgate.9 route.9 rtredirect.9 route.9 rtdeletemsg.9 -MLINKS+=rt_ifa_add.9 rt_ifa_del.9 rt_ifa_add.9 rt_ifa_addloop.9 \ - rt_ifa_add.9 rt_ifa_delloop.9 +MLINKS+=rt_ifa_add.9 rt_ifa_del.9 rt_ifa_add.9 rt_ifa_addlocal.9 \ + rt_ifa_add.9 rt_ifa_dellocal.9 MLINKS+=rt_timer_add.9 rt_timer_queue_create.9 \ rt_timer_add.9 rt_timer_queue_count.9 \ rt_timer_add.9 rt_timer_queue_change.9 \ diff --git a/share/man/man9/rt_ifa_add.9 b/share/man/man9/rt_ifa_add.9 index 05849d692c1..f8420bcc38f 100644 --- a/share/man/man9/rt_ifa_add.9 +++ b/share/man/man9/rt_ifa_add.9 @@ -1,4 +1,4 @@ -.\" $OpenBSD: rt_ifa_add.9,v 1.3 2014/10/15 11:58:13 mpi Exp $ +.\" $OpenBSD: rt_ifa_add.9,v 1.4 2014/11/24 12:43:54 mpi Exp $ .\" .\" Copyright (c) 2014 Martin Pieuchot .\" @@ -14,14 +14,14 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: October 15 2014 $ +.Dd $Mdocdate: November 24 2014 $ .Dt RT_IFA_ADD 9 .Os .Sh NAME .Nm rt_ifa_add , .Nm rt_ifa_del , -.Nm rt_ifa_addloop , -.Nm rt_ifa_delloop +.Nm rt_ifa_addlocal , +.Nm rt_ifa_dellocal .Nd add or delete routing entries associated with an address .Sh SYNOPSIS .In sys/types.h @@ -32,14 +32,14 @@ .Fn rt_ifa_add "struct ifaddr *ifa" "int flags" "struct sockaddr *dst" .Ft int .Fn rt_ifa_del "struct ifaddr *ifa" "int flags" "struct sockaddr *dst" -.Ft void -.Fn rt_ifa_addloop "struct ifaddr *ifa" -.Ft void -.Fn rt_ifa_delloop "struct ifaddr *ifa" +.Ft int +.Fn rt_ifa_addlocal "struct ifaddr *ifa" +.Ft int +.Fn rt_ifa_dellocal "struct ifaddr *ifa" .Sh DESCRIPTION These functions create and delete routing entries required by the network stack and managed by the kernel. -.Bl -tag -width rt_ifa_addloopxx +.Bl -tag -width rt_ifa_addlocalxx .It Fn rt_ifa_add Creates and associates a connected routing entry with .Fa ifa . @@ -66,7 +66,7 @@ Connected routing entries have a priority of .It Fn rt_ifa_del Removes the connected routing entry associated with .Fa ifa . -.It Fn rt_ifa_addloop +.It Fn rt_ifa_addlocal Creates and associates a local routing entry with .Fa ifa . @@ -79,21 +79,23 @@ They have the lowest priority available, and contain a special flag, .Dv RTF_LOCAL , that can be checked to determine if the address is configured on the system. -.It Fn rt_ifa_delloop +.It Fn rt_ifa_dellocal Removes the local routing entry associated with .Fa ifa . .El .Sh CONTEXT .Fn rt_ifa_add , .Fn rt_ifa_del , -.Fn rt_ifa_addloop , +.Fn rt_ifa_addlocal , and -.Fn rt_ifa_delloop +.Fn rt_ifa_dellocal can be called during autoconf, from process context, or from interrupt context. .Sh RETURN VALUES -.Fn rt_ifa_add +.Fn rt_ifa_add , +.Fn rt_ifa_del , +.Fn rt_ifa_addlocal , and -.Fn rt_ifa_del +.Fn rt_ifa_dellocal will return .Dv 0 on success and the return value of |