The offload flag is a status flag and should not be used by FIB semantics for comparison.
Showing the changes to include/uapi (1 of 1 file). Show all
Unified · Split
| @@ -350,7 +350,7 @@ struct rtnexthop { · 349 unmodified lines | |||
| 350 | #define RTNH_F_OFFLOAD 8 /* offloaded route */ | 350 | #define RTNH_F_OFFLOAD 8 /* offloaded route */ |
| 351 | #define RTNH_F_LINKDOWN 16 /* carrier-down on nexthop */ | 351 | #define RTNH_F_LINKDOWN 16 /* carrier-down on nexthop */ |
| 352 | 352 | ||
| 353 | #define RTNH_COMPARE_MASK (RTNH_F_DEAD | RTNH_F_LINKDOWN) | 353 | #define RTNH_COMPARE_MASK (RTNH_F_DEAD | RTNH_F_LINKDOWN | RTNH_F_OFFLOAD) |
| 354 | 354 | ||
| 355 | /* Macros to handle hexthops */ | 355 | /* Macros to handle hexthops */ |
| 356 | 356 | ||