Skip to content

Commit 32744b0

Browse files
Erich Heinecathay4t
authored andcommitted
Re #19 - add egress builder for TcNat type
Signed-off-by: Erich Heine <erich@cloudflare.com>
1 parent 2b730dc commit 32744b0

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)