summaryrefslogtreecommitdiff
path: root/share/man/man9
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2019-02-13 23:47:44 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2019-02-13 23:47:44 +0000
commitf4b6c16afb0edf8ec9850cea359a9e430a610635 (patch)
treebbddfaade2c28e0eb1b99cc127fe967a02f01440 /share/man/man9
parent6441905bfeadbf0368fbc36fe6e83edbb69f00cc (diff)
change rt_ifa_add and rt_ifa_del so they take an rdomain argument.
this allows mpls interfaces (mpe, mpw) to pass the rdomain they wish the local label to be in, rather than have it implicitly forced to 0 by these functions. right now they'll pass 0, but it will soon be possible to have them rx packets in other rdomains. previously the functions used ifp->if_rdomain for the rdomain. everything other than mpls still passes ifp->if_rdomain. ok mpi@
Diffstat (limited to 'share/man/man9')
-rw-r--r--share/man/man9/rt_ifa_add.926
1 files changed, 20 insertions, 6 deletions
diff --git a/share/man/man9/rt_ifa_add.9 b/share/man/man9/rt_ifa_add.9
index 305c7b8f212..f0a54b2ba37 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.5 2015/10/30 09:48:03 bluhm Exp $
+.\" $OpenBSD: rt_ifa_add.9,v 1.6 2019/02/13 23:47:43 dlg Exp $
.\"
.\" Copyright (c) 2014 Martin Pieuchot
.\"
@@ -14,7 +14,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: October 30 2015 $
+.Dd $Mdocdate: February 13 2019 $
.Dt RT_IFA_ADD 9
.Os
.Sh NAME
@@ -29,9 +29,19 @@
.In net/if.h
.In net/route.h
.Ft int
-.Fn rt_ifa_add "struct ifaddr *ifa" "int flags" "struct sockaddr *dst"
+.Fo rt_ifa_add
+.Fa "struct ifaddr *ifa"
+.Fa "int flags"
+.Fa "struct sockaddr *dst"
+.Fa "unsigned int rdomain"
+.Fc
.Ft int
-.Fn rt_ifa_del "struct ifaddr *ifa" "int flags" "struct sockaddr *dst"
+.Fo rt_ifa_del
+.Fa "struct ifaddr *ifa"
+.Fa "int flags"
+.Fa "struct sockaddr *dst"
+.Fa "unsigned int rdomain"
+.Fc
.Ft int
.Fn rt_ifa_addlocal "struct ifaddr *ifa"
.Ft int
@@ -42,7 +52,9 @@ stack and managed by the kernel.
.Bl -tag -width rt_ifa_addlocalxx
.It Fn rt_ifa_add
Creates and associates a connected routing entry with
-.Fa ifa .
+.Fa ifa
+in the routing domain specified by
+.Fa rdomain .
.Pp
Connected routing entries represent routes to prefixes and should be created
with
@@ -65,7 +77,9 @@ Connected routing entries have a priority of
.Dv RTP_CONNECTED .
.It Fn rt_ifa_del
Removes the connected routing entry associated with
-.Fa ifa .
+.Fa ifa
+in the routing domain specified by
+.Fa rdomain .
.It Fn rt_ifa_addlocal
Creates and associates a local routing entry
with