Hi Morten, What is the difference compare to rte_net_get_ptype(), which also parses packet types and reports on header length.
In my application I have also done something similar about malformed packets. IMO it's very useful to have return value indicate different types of malformed packets, not just -1, e.g. invalid IP options, IP loopback, etc. Regards, BL