Skip to content
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dataplane/src/drivers/kernel/worker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ fn packet_recv(
max_to_read: usize,
pkts: &mut Vec<Box<Packet<TestBuffer>>>,
) -> Result<(), nix::Error> {
let mut raw = [0u8; 9100];
let mut raw = [0u8; 9600];
let mut ret = Ok(());
pkts.clear();
while pkts.len() < max_to_read {
Expand Down
5 changes: 1 addition & 4 deletions nat/src/stateful/nf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,7 @@ impl StatefulNat {
| NatFlowStatus::CHalfClose
| NatFlowStatus::SHalfClose
| NatFlowStatus::LastAck => Some(Self::MASQUERADE_CLOSING_TIMEOUT),
NatFlowStatus::OneWay => {
warn!("Unexpected oneway state");
None
}
NatFlowStatus::OneWay => None,
};

// extend the duration of the flow according to the new status
Expand Down
Loading