From 61814584a2bfe98ba5a61bd07f889b7ca25ca07d Mon Sep 17 00:00:00 2001 From: Thomas Kolb Date: Sun, 10 Nov 2024 23:10:32 +0100 Subject: [PATCH] tundev: remove IFF_NO_PI Without this flag the kernel adds packet information to each packet. The interesting part of that information is the EtherType of the packet, which simplifies handling. --- impl/src/layer2/tundev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/impl/src/layer2/tundev.c b/impl/src/layer2/tundev.c index 76ad311..c123a4b 100644 --- a/impl/src/layer2/tundev.c +++ b/impl/src/layer2/tundev.c @@ -29,7 +29,7 @@ int tundev_open(char *dev) struct ifreq ifr; memset(&ifr, 0, sizeof(ifr)); - ifr.ifr_flags = IFF_TUN | IFF_NO_PI; + ifr.ifr_flags = IFF_TUN; strncpy(ifr.ifr_name, dev, IFNAMSIZ);