summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKelvin Zhang <zhangxp1998@gmail.com>2020-01-12 20:08:17 -0500
committerKelvin Zhang <zhangxp1998@gmail.com>2020-01-13 15:36:26 -0500
commit5038987b2f58dd2afbb8f028e768cb20b3b33c03 (patch)
tree937793c07eaa6e6dacdeb0d5f73eeb4377738401 /src
parent93783eed03c05e92028d953dd4caf078b1d593d7 (diff)
Fix fake_input loopback flag set to 1 issue
Diffstat (limited to 'src')
-rw-r--r--src/tests/fakes/fake_input.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/tests/fakes/fake_input.rs b/src/tests/fakes/fake_input.rs
index 6283967..a06b617 100644
--- a/src/tests/fakes/fake_input.rs
+++ b/src/tests/fakes/fake_input.rs
@@ -151,7 +151,10 @@ pub fn get_interfaces() -> Vec<NetworkInterface> {
index: 42,
mac: None,
ips: vec![IpNetwork::V4("10.0.0.2".parse().unwrap())],
- flags: 42,
+ // It's important that the IFF_LOOBACK bit is set to 0.
+ // Otherwise sniffer will attempt to start parse packets
+ // at offset 14
+ flags: 0,
}]
}