summaryrefslogtreecommitdiff
path: root/epan
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2017-06-22 15:31:05 -0400
committerMichael Mann <mmann78@netscape.net>2017-06-22 21:05:47 +0000
commit880c2aa04ff2bbff6f1b1df286da3cc6c829bc69 (patch)
tree5446e2fb6cf7af88e9d11aac92d1c3c590ffd771 /epan
parentba2478845cf0db858a209f94848474e84cf50bf6 (diff)
downloadwireshark-880c2aa04ff2bbff6f1b1df286da3cc6c829bc69.tar.gz
SSH: Add port 29418 (Gerrit)
Convert the TCP port preference to a range and add Gerrit's default port. Change-Id: I13460315e9b312673648a37d5f90955134b3ddbc Reviewed-on: https://code.wireshark.org/review/22362 Reviewed-by: Gerald Combs <gerald@wireshark.org> Petri-Dish: Gerald Combs <gerald@wireshark.org> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan')
-rw-r--r--epan/dissectors/packet-ssh.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-ssh.c b/epan/dissectors/packet-ssh.c
index cea1c8d934..244837507d 100644
--- a/epan/dissectors/packet-ssh.c
+++ b/epan/dissectors/packet-ssh.c
@@ -213,7 +213,8 @@ static gboolean ssh_desegment = TRUE;
static dissector_handle_t ssh_handle;
-#define TCP_PORT_SSH 22
+// 29418/tcp: Gerrit Code Review
+#define TCP_RANGE_SSH "22,29418"
#define SCTP_PORT_SSH 22
/* Message Numbers (from RFC 4250) (1-255) */
@@ -1258,7 +1259,6 @@ ssh_dissect_proposal(tvbuff_t *tvb, int offset, proto_tree *tree,
return offset;
}
-
void
proto_register_ssh(void)
{
@@ -1614,7 +1614,7 @@ proto_register_ssh(void)
void
proto_reg_handoff_ssh(void)
{
- dissector_add_uint_with_preference("tcp.port", TCP_PORT_SSH, ssh_handle);
+ dissector_add_uint_range_with_preference("tcp.port", TCP_RANGE_SSH, ssh_handle);
dissector_add_uint("sctp.port", SCTP_PORT_SSH, ssh_handle);
dissector_add_uint("sctp.ppi", SSH_PAYLOAD_PROTOCOL_ID, ssh_handle);
}