summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrediano Ziglio <freddy77@gmail.com>2023-11-07 11:35:51 +0000
committerFrediano Ziglio <freddy77@gmail.com>2023-11-07 11:35:57 +0000
commit2693ea4bc9aba10106b3405d20d6bd1036640071 (patch)
tree1f096312163a2ef78023a504e7eba97552aeba45
parentf7136a01dfda31151c21069fa33750ef8e799638 (diff)
Take into account CRC field for framingHEADmaster
Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
-rw-r--r--tun.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tun.c b/tun.c
index 5d0a30e..45747a0 100644
--- a/tun.c
+++ b/tun.c
@@ -58,8 +58,8 @@ static bool is_server = false;
static pcap_file *pcap = NULL;
/* bytes for taking into account framing.
- * 14 is the usual Ethernet framing */
-unsigned framing_bytes = 14;
+ * 14 is the usual Ethernet framing, 4 CRC */
+unsigned framing_bytes = 14 + 4;
const char *tun_log_filename = NULL;