Signed-off-by: Anatoly Burakov <anatoly.burakov at intel.com> --- lib/librte_ip_frag/ip_frag_internal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/librte_ip_frag/ip_frag_internal.c b/lib/librte_ip_frag/ip_frag_internal.c index 219221f..6203740 100644 --- a/lib/librte_ip_frag/ip_frag_internal.c +++ b/lib/librte_ip_frag/ip_frag_internal.c @@ -350,7 +350,7 @@ ip_frag_lookup(struct rte_ip_frag_tbl *tbl, return (tbl->last); /* different hashing methods for IPv4 and IPv6 */ - if (key->key_len == 1) + if (key->key_len == IPV4_KEYLEN) ipv4_frag_hash(key, &sig1, &sig2); else ipv6_frag_hash(key, &sig1, &sig2); -- 1.8.1.4