Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F153089706
D56202.id174746.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
751 B
Referenced Files
None
Subscribers
None
D56202.id174746.diff
View Options
diff --git a/sbin/route/route_netlink.c b/sbin/route/route_netlink.c
--- a/sbin/route/route_netlink.c
+++ b/sbin/route/route_netlink.c
@@ -472,7 +472,7 @@
print_nlmsg_route_nhop(struct nl_helper *h, struct snl_parsed_route *r,
struct rta_mpath_nh *nh, bool first)
{
- // gw 10.0.0.1 ifp vtnet0 mtu 1500 table inet.0
+ // gw 10.0.0.1 iface vtnet0 weight 100 mtu 1500 expire 3600 table inet.0
if (nh->gw != NULL) {
char gwbuf[128];
print_prefix(h, gwbuf, sizeof(gwbuf), nh->gw, -1);
@@ -486,6 +486,7 @@
if (nh->rtax_mtu == 0)
nh->rtax_mtu = link.ifla_mtu;
printf("iface %s ", link.ifla_ifname);
+ printf("weight %d ", nh->rtnh_weight);
if (nh->rtax_mtu != 0)
printf("mtu %d ", nh->rtax_mtu);
if (nh->rta_expire > 0)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Apr 20, 1:49 AM (11 h, 31 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30722726
Default Alt Text
D56202.id174746.diff (751 B)
Attached To
Mode
D56202: route: Show weight of nexthop in multipath routes
Attached
Detach File
Event Timeline
Log In to Comment