]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Geneve: Fix the Geneve UDP port test
authorFrancois-Xavier Le Bail <[email protected]>
Fri, 17 Feb 2023 18:12:00 +0000 (19:12 +0100)
committerFrancois-Xavier Le Bail <[email protected]>
Fri, 17 Feb 2023 18:29:46 +0000 (19:29 +0100)
GENEVE_PORT (6081) is a destination port.

(cherry picked from commit 560575198406265c510771de10b6c86381f5dd9a)

print-udp.c

index 0efb0f1e8d39654e25b761025b3aee0b6e29e2b4..a477e63d3e453510c4e2ff0f215dd6287ed76621 100644 (file)
@@ -701,7 +701,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);