Page MenuHomeFreeBSD

D56324.diff
No OneTemporary

D56324.diff

diff --git a/share/man/man4/rtnetlink.4 b/share/man/man4/rtnetlink.4
--- a/share/man/man4/rtnetlink.4
+++ b/share/man/man4/rtnetlink.4
@@ -22,7 +22,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd November 1, 2022
+.Dd April 06, 2026
.Dt RTNETLINK 4
.Os
.Sh NAME
@@ -144,7 +144,7 @@
struct rtnexthop {
unsigned short rtnh_len;
unsigned char rtnh_flags;
- unsigned char rtnh_hops; /* nexthop weight */
+ unsigned char rtnh_hops; /* nexthop metric */
int rtnh_ifindex;
};
.Ed
@@ -165,6 +165,7 @@
The following TLVs can follow the structure:
.Bd -literal -offset indent -compact
RTA_GATEWAY IPv4/IPv6 nexthop address of the gateway
+RTA_WEIGHT nexthop weight of the gateway
RTA_VIA IPv6 nexthop address for IPv4 route
RTA_KNH_ID Kernel-specific index of the nexthop
.Ed
@@ -178,6 +179,10 @@
.Dv RT_TABLE_MAIN .
To explicitly specify "all tables" one needs to set the value to
.Dv RT_TABLE_UNSPEC .
+.It Dv RTA_PRIORITY
+(uint8_t) metric of the nexthop.
+.It Dv RTA_WEIGHT
+(uint32_t) weight of the nexthop.
.It Dv RTA_EXPIRES
(uint32_t) seconds till path expiration.
.It Dv RTA_NH_ID

File Metadata

Mime Type
text/plain
Expires
Sun, Apr 19, 9:47 PM (4 h, 13 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31251702
Default Alt Text
D56324.diff (1 KB)

Event Timeline