net: define IPv4 IHL and VHL
authorSaleh Alsouqi <salehals@mellanox.com>
Thu, 4 Jul 2019 07:33:19 +0000 (07:33 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 4 Jul 2019 23:52:01 +0000 (01:52 +0200)
commit2318d8d5456532e8022d324937a77a416b701d2b
treea5992f9592d4110bb40ab945634570fb13304b0c
parentdfebfc9882fbf1a66ba563663df1fe2e3906997b
net: define IPv4 IHL and VHL

Define IPv4 Minimum IHL and VHL according to rfc791 (see [1])

    "The Version field indicates the format of the
    internet header."

    "Internet Header Length (ihl) is the length of the
    internet header in 32 bit words, and thus points
    to the beginning of the data. Note that
    the minimum value for a correct header is 5."

[1] https://tools.ietf.org/html/rfc791

Signed-off-by: Saleh Alsouqi <salehals@mellanox.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
lib/librte_net/rte_ip.h