Skip to content

Commit

Permalink
support NHFLAGS [ onlink | pervasive ]
Browse files Browse the repository at this point in the history
like `ip r add default dev eth0 via 169.254.1.1 onlink`
  • Loading branch information
liuxu623 committed Sep 15, 2023
1 parent 3477b37 commit 970f795
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/rtnl/route/header.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ pub struct RouteFlags: u32 {
const RTM_F_LOOKUP_TABLE = RTM_F_LOOKUP_TABLE;
/// Return the full FIB lookup match (see commit `b61798130f1be5bff08712308126c2d7ebe390ef`)
const RTM_F_FIB_MATCH = RTM_F_FIB_MATCH;

/// Do recursive gateway lookup
const RTNH_F_PERVASIVE = RTNH_F_PERVASIVE as u32;
/// Gateway is forced on link
const RTNH_F_ONLINK = RTNH_F_ONLINK as u32;
}
}

Expand Down

0 comments on commit 970f795

Please sign in to comment.