aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2023-02-17 19:12:00 +0100
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2023-02-17 19:29:46 +0100
commita4b07ab12caef97dcc53bfffc15e8a9b228179b5 (patch)
tree5a8271738a93b17abfd78028e3cbc3a4da4eb47c
parentf9f2701851833c6c1c98158df53f15d7e32db25e (diff)
downloadtcpdump-a4b07ab12caef97dcc53bfffc15e8a9b228179b5.tar.gz
Geneve: Fix the Geneve UDP port test
GENEVE_PORT (6081) is a destination port. (cherry picked from commit 560575198406265c510771de10b6c86381f5dd9a)
-rw-r--r--print-udp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/print-udp.c b/print-udp.c
index 0efb0f1e..a477e63d 100644
--- a/print-udp.c
+++ b/print-udp.c
@@ -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);