Skip to content

Commit

Permalink
change filter verdict to accept for other Ether types
Browse files Browse the repository at this point in the history
  • Loading branch information
johanmazelanssi committed Jul 31, 2024
1 parent a9a5a9a commit f4ce0b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pcap-rewrite/src/filters/dispatch_filter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ impl<Container, Key> DispatchFilter<Container, Key> {
};

match key_option {
None => Ok(Verdict::Drop),
None => Ok(Verdict::Accept(packet_data)),
Some(key) => match (self.keep)(&self.key_container, &key) {
Ok(b) => {
if b {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ impl<Container, Key> FragmentationFilter<Container, Key> {
};

match key_option {
None => Ok(Verdict::Drop),
None => Ok(Verdict::Accept(packet_data)),
Some(key) => match (self.keep)(&self.key_container, &key) {
Ok(b) => {
if b {
Expand Down

0 comments on commit f4ce0b1

Please sign in to comment.