If the weight value is larger than 8 bits, set it to the maximum.
Also, only send RTA_WEIGHT if its value is not the default.
This reduces message size and matches the behavior of
non-multipath routes.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
| sys/netlink/route/rt.c | ||
|---|---|---|
| 220 | Use MAX()? | |
| sys/netlink/route/rt.c | ||
|---|---|---|
| 246 | Doesn't this break backwards compatibility? Or is this code new enough that it doesn't matter? | |
| sys/netlink/route/rt.c | ||
|---|---|---|
| 246 | This one is new. | |