Skip to content

Commit a2e54d3

Browse files
author
Erich Heine
committed
Re #19 - add egress builder for TcNat type
1 parent 6650f7f commit a2e54d3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/rtnl/tc/nlas/action/nat.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,11 @@ impl TcNat {
122122

123123
self
124124
}
125+
126+
pub fn egress(mut self) -> Self {
127+
self.flags = TCA_NAT_FLAG_EGRESS;
128+
self
129+
}
125130
}
126131
impl Emitable for TcNat {
127132
fn buffer_len(&self) -> usize {

0 commit comments

Comments
 (0)