From: mpi Date: Wed, 21 Oct 2015 08:48:12 +0000 (+0000) Subject: No longer mention rtable_get(), it's a private function now. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=617e871d9ff46b7fe136a3976b8c6d4ab0982451;p=openbsd No longer mention rtable_get(), it's a private function now. While here use C99 types in function definitions. --- diff --git a/share/man/man9/Makefile b/share/man/man9/Makefile index b9f836b2f28..9d2af27ac34 100644 --- a/share/man/man9/Makefile +++ b/share/man/man9/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.246 2015/09/18 08:30:23 dlg Exp $ +# $OpenBSD: Makefile,v 1.247 2015/10/21 08:48:12 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. @@ -337,8 +337,8 @@ MLINKS+=rt_timer_add.9 rt_timer_queue_create.9 \ rt_timer_add.9 rt_timer_remove_all.9 MLINKS+=rtalloc.9 rtalloc_mpath.9 rtalloc.9 rtisvalid.9 rtalloc.9 rtref.9 \ rtalloc.9 rtfree.9 -MLINKS+=rtable_add.9 rtable_exists.9 rtable_add.9 rtable_get.9 \ - rtable_add.9 rtable_l2.9 rtable_add.9 rtable_l2set.9 +MLINKS+=rtable_add.9 rtable_exists.9 rtable_add.9 rtable_l2.9 \ + rtable_add.9 rtable_l2set.9 MLINKS+=rtlabel_id2name.9 rtlabel_name2id.9 \ rtlabel_id2name.9 rtlabel_id2sa.9 rtlabel_id2name.9 rtlabel_unref.9 MLINKS+=rwlock.9 rw_init.9 rwlock.9 rw_enter.9 rwlock.9 rw_exit.9 \ diff --git a/share/man/man9/rtable_add.9 b/share/man/man9/rtable_add.9 index 32d64040da9..b767f56b416 100644 --- a/share/man/man9/rtable_add.9 +++ b/share/man/man9/rtable_add.9 @@ -1,4 +1,4 @@ -.\" $OpenBSD: rtable_add.9,v 1.5 2014/03/26 13:57:54 mpi Exp $ +.\" $OpenBSD: rtable_add.9,v 1.6 2015/10/21 08:48:12 mpi Exp $ .\" .\" Copyright (c) 2011 Bret S. Lambert .\" All rights reserved. @@ -15,40 +15,37 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: March 26 2014 $ +.Dd $Mdocdate: October 21 2015 $ .Dt RTABLE_ADD 9 .Os .Sh NAME .Nm rtable_add , .Nm rtable_exists , -.Nm rtable_get , .Nm rtable_l2 , .Nm rtable_l2set .Nd routing tables and routing domains interface .Sh SYNOPSIS .In net/route.h .Ft int -.Fn rtable_add "u_int id" +.Fn rtable_add "unsigned int id" .Ft int -.Fn rtable_exists "u_int id" -.Ft struct radix_node_head * -.Fn rtable_get "u_int id" "sa_family_t af" -.Ft u_int -.Fn rtable_l2 "u_int id" +.Fn rtable_exists "unsigned int id" +.Ft unsigned int +.Fn rtable_l2 "unsigned int id" .Ft void -.Fn rtable_l2set "u_int id" "u_int rdomain" +.Fn rtable_l2set "unsigned int id" "unsigned int rdomain" .Sh DESCRIPTION Routing tables contain layer 2 and 3 forwarding information. Each address family in use will have its own routing table. Routing domains are a way of logically segmenting a router among multiple networks and may contain more than one routing table. .Bl -tag -width Ds -.It Fn rtable_add "u_int id" +.It Fn rtable_add "unsigned int id" Add routing table with ID of .Fa id to routing domain .Fa 0 . -.It Fn rtable_exists "u_int id" +.It Fn rtable_exists "unsigned int id" Return .Fa 1 if routing table with ID @@ -56,18 +53,10 @@ if routing table with ID exists, .Fa 0 otherwise. -.It Fn rtable_get "u_int id" "sa_family_t af" -Return the root node for the family -.Fa af -of the routing table with ID of -.Fa id -if it exists, -.Fa NULL -otherwise. -.It Fn rtable_l2 "u_int id" +.It Fn rtable_l2 "unsigned int id" Get the routing domain of routing table with ID of .Fa id . -.It Fn rtable_l2set "u_int id" "u_int rdomain" +.It Fn rtable_l2set "unsigned int id" "unsigned int rdomain" Place routing table with ID of .Fa id under the routing domain with ID of @@ -76,7 +65,6 @@ under the routing domain with ID of .Sh CONTEXT .Fn rtable_add , .Fn rtable_exists , -.Fn rtable_get , .Fn rtable_l2 , and .Fn task_l2set diff --git a/share/man/man9/rtrequest1.9 b/share/man/man9/rtrequest1.9 index fcbdc61137b..09295530101 100644 --- a/share/man/man9/rtrequest1.9 +++ b/share/man/man9/rtrequest1.9 @@ -1,4 +1,4 @@ -.\" $OpenBSD: rtrequest1.9,v 1.4 2015/08/19 13:27:38 bluhm Exp $ +.\" $OpenBSD: rtrequest1.9,v 1.5 2015/10/21 08:48:12 mpi Exp $ .\" .\" Copyright (c) 2011 Bret S. Lambert .\" All rights reserved. @@ -15,7 +15,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: August 19 2015 $ +.Dd $Mdocdate: October 21 2015 $ .Dt RTREQUEST1 9 .Os .Sh NAME @@ -134,5 +134,4 @@ An interface address corresponding to the routing entry described by could not be found. .El .Sh SEE ALSO -.Xr rtable_get 9 , .Xr rtfree 9