We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 454fc58 commit dabef43Copy full SHA for dabef43
src/rule/add.rs
@@ -93,6 +93,12 @@ impl<T> RuleAddRequest<T> {
93
self
94
}
95
96
+ /// Set the fwmark
97
+ pub fn fw_mark(mut self, fw_mark: u32) -> Self {
98
+ self.message.nlas.push(Nla::FwMark(fw_mark));
99
+ self
100
+ }
101
+
102
/// Build an IP v4 rule
103
pub fn v4(mut self) -> RuleAddRequest<Ipv4Addr> {
104
self.message.header.family = AF_INET as u8;
0 commit comments