From: Shivani Bhardwaj Date: Wed, 13 Sep 2023 09:50:38 +0000 (+0530) Subject: util/ioctl: cut vain check on GetIfaceMaxHWHeaderLength X-Git-Tag: suricata-7.0.2~37 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cdcb1b3263985b4106cab5e515c4887b2a30af8c;p=thirdparty%2Fsuricata.git util/ioctl: cut vain check on GetIfaceMaxHWHeaderLength --- diff --git a/src/util-ioctl.c b/src/util-ioctl.c index 4926cefde8..96ebe0b5ee 100644 --- a/src/util-ioctl.c +++ b/src/util-ioctl.c @@ -139,10 +139,6 @@ int GetIfaceMaxPacketSize(const char *pcap_dev) return 0; } int ll_header = GetIfaceMaxHWHeaderLength(pcap_dev); - if (ll_header == -1) { - /* be conservative, choose a big one */ - ll_header = 16; - } return ll_header + mtu; }