Skip to content

Commit

Permalink
[windows_kext] Make default action to drop
Browse files Browse the repository at this point in the history
  • Loading branch information
vlabo committed Nov 20, 2024
1 parent 38e9e34 commit 7eb290e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion windows_kext/driver/src/packet_callouts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@ fn ip_packet_layer(
interface_index: u32,
sub_interface_index: u32,
) {
// Make the default path as drop.
data.block_and_absorb();

// Block all fragment data. No easy way to keep track of the origin and they are rarely used.
if data.is_fragment_data() {
data.action_block();
Expand Down Expand Up @@ -147,7 +150,7 @@ fn ip_packet_layer(
} {
Ok(key) => key,
Err(err) => {
crate::dbg!("failed to get key from nbl: {}", err);
crate::err!("failed to get key from nbl: {}", err);
return;
}
};
Expand Down

0 comments on commit 7eb290e

Please sign in to comment.