rtnetlink.7: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2020-09-11 07:31:50 +02:00
parent a6c679521b
commit 1bad27850d
1 changed files with 10 additions and 9 deletions

View File

@ -106,7 +106,7 @@ IFLA_STATS:T{
see below
T}:Interface Statistics
.TE
.PP
.IP
The value type for
.B IFLA_STATS
is
@ -360,29 +360,30 @@ Expire time for IPv6
routes (in seconds)
T}
.TE
.PP
.IP
.I RTA_MULTIPATH
contains several packed instances of
.I struct rtnexthop
together with nested RTAs
.RB ( RTA_GATEWAY ):
.PP
.IP
.in +4n
.EX
struct rtnexthop {
unsigned short rtnh_len; /* Length of struct + length
of RTAs */
unsigned char rtnh_flags; /* Flags (see linux/rtnetlink.h) */
unsigned char rtnh_flags; /* Flags (see
linux/rtnetlink.h) */
unsigned char rtnh_hops; /* Nexthop priority */
int rtnh_ifindex; /* Interface index for this
nexthop */
}
.EE
.in
.PP
.IP
There exist a bunch of RTNH_* macros similar to RTA_* and NLHDR_* macros
useful to handle these structures.
.PP
.IP
.in +4n
.EX
struct rtvia {
@ -391,17 +392,17 @@ struct rtvia {
};
.EE
.in
.PP
.IP
.I rtvia_addr
is the address,
.I rtvia_family
is its family type.
.PP
.IP
.I RTA_PREF
may contain values ICMPV6_ROUTER_PREF_LOW,
ICMPV6_ROUTER_PREF_MEDIUM and
ICMPV6_ROUTER_PREF_HIGH defined in <linux/icmpv6.h>
.PP
.IP
.I RTA_ENCAP_TYPE
may contain values
LWTUNNEL_ENCAP_MPLS, LWTUNNEL_ENCAP_IP,