From bcd7ea37d40747b14d5710bacf550a872ba2d01e Mon Sep 17 00:00:00 2001 From: Markus Pettersson Date: Fri, 12 Sep 2025 21:06:04 +0200 Subject: [PATCH] Add function on RouteMessageBuilder for setting route mark --- src/route/builder.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/route/builder.rs b/src/route/builder.rs index 233a5b2..9a97734 100644 --- a/src/route/builder.rs +++ b/src/route/builder.rs @@ -115,6 +115,13 @@ impl RouteMessageBuilder { self } + #[cfg(not(target_os = "android"))] + /// Sets mark value on route. + pub fn mark(mut self, mark: u32) -> Self { + self.message.attributes.push(RouteAttribute::Mark(mark)); + self + } + /// Sets the route protocol. /// /// Default is static route protocol.