Geneve: Fix the Geneve UDP port test

GENEVE_PORT (6081) is a destination port.
This commit is contained in:
Francois-Xavier Le Bail 2023-02-17 19:12:00 +01:00
parent e5bd2dcf49
commit 5605751984

View File

@ -653,7 +653,7 @@ udp_print(netdissect_options *ndo, const u_char *bp, u_int length,
otv_print(ndo, cp, length);
else if (IS_SRC_OR_DST_PORT(VXLAN_PORT))
vxlan_print(ndo, cp, length);
else if (IS_SRC_OR_DST_PORT(GENEVE_PORT))
else if (dport == GENEVE_PORT)
geneve_print(ndo, cp, length);
else if (IS_SRC_OR_DST_PORT(LISP_CONTROL_PORT))
lisp_print(ndo, cp, length);