On 10/12/2020 3:55 PM, Michael Pfeiffer wrote:
Add a function to calculate the length of an IPv4 header as suggested
on the mailing list [1]. Call where appropriate.
[1] https://mails.dpdk.org/archives/dev/2020-October/184471.html
Suggested-by: Thomas Monjalon <tho...@monjalon.net>
Signed-off-by: Michael Pfeiffer <michael.pfeif...@tu-ilmenau.de>
Reviewed-by: Ferruh Yigit <ferruh.yi...@intel.com>
Applied to dpdk-next-net/main, thanks.
Updated patch title to "net: add function to calculate IPv4 header length"
Since you are already on it, a similar function to get the version also can be
useful, if you have time for it.