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>
This commit is contained in:
parent
ba2478845c
commit
880c2aa04f
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue