Skip to content

Commit c0edfbf

Browse files
MarkusPettersson98cathay4t
authored andcommitted
Add function on RouteMessageBuilder for setting route mark
1 parent 84dfe67 commit c0edfbf

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/route/builder.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,13 @@ impl<T> RouteMessageBuilder<T> {
115115
self
116116
}
117117

118+
#[cfg(not(target_os = "android"))]
119+
/// Sets mark value on route.
120+
pub fn mark(mut self, mark: u32) -> Self {
121+
self.message.attributes.push(RouteAttribute::Mark(mark));
122+
self
123+
}
124+
118125
/// Sets the route protocol.
119126
///
120127
/// Default is static route protocol.

0 commit comments

Comments
 (0)