Skip to content

Commit

Permalink
Re rust-netlink#19 - add egress builder for TcNat type
Browse files Browse the repository at this point in the history
Signed-off-by: Erich Heine <[email protected]>
  • Loading branch information
Erich Heine authored and cathay4t committed Apr 14, 2023
1 parent 2b730dc commit 32744b0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/rtnl/tc/nlas/action/nat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,11 @@ impl TcNat {

self
}

pub fn egress(mut self) -> Self {
self.flags = TCA_NAT_FLAG_EGRESS;
self
}
}
impl Emitable for TcNat {
fn buffer_len(&self) -> usize {
Expand Down

0 comments on commit 32744b0

Please sign in to comment.