Project

General

Profile

Actions

Optimization #1188

open

Don't use iface name in GetIfaceMaxHWHeaderLength

Added by Eric Leblond over 10 years ago. Updated over 5 years ago.

Status:
New
Priority:
Low
Target version:
Effort:
low
Difficulty:
low
Label:

Description

GetIfaceMaxHWHeaderLength is using interface name to find hardware header length. This fails in system such as fedora or *BSD which are not using the same naming schema. The consequence is that the biggest hw header length is chosen causing a few more bits to be used for each packet.

It will be better to be able to get the hw header length from an other method. Doing something like pcap is a good idea.

Actions

Also available in: Atom PDF