Dissect SSH over SCTP when using the IANA assigned SCTP port 22.
authortuexen <tuexen@f5534014-38df-0310-8fa8-9805f1628bb7>
Sun, 26 Feb 2012 17:54:32 +0000 (17:54 +0000)
committertuexen <tuexen@f5534014-38df-0310-8fa8-9805f1628bb7>
Sun, 26 Feb 2012 17:54:32 +0000 (17:54 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@41197 f5534014-38df-0310-8fa8-9805f1628bb7

epan/dissectors/packet-ssh.c

index aa43399..a0cb99e 100644 (file)
@@ -148,6 +148,7 @@ static gint ett_ssh2= -1;
 static gboolean ssh_desegment = TRUE;
 
 #define TCP_PORT_SSH  22
 static gboolean ssh_desegment = TRUE;
 
 #define TCP_PORT_SSH  22
+#define SCTP_PORT_SSH 22
 
 /* Message Numbers (from RFC 4250) (1-255) */
 
 
 /* Message Numbers (from RFC 4250) (1-255) */
 
@@ -1337,4 +1338,5 @@ proto_reg_handoff_ssh(void)
        ssh_handle = create_dissector_handle(dissect_ssh, proto_ssh);
 
        dissector_add_uint("tcp.port", TCP_PORT_SSH, ssh_handle);
        ssh_handle = create_dissector_handle(dissect_ssh, proto_ssh);
 
        dissector_add_uint("tcp.port", TCP_PORT_SSH, ssh_handle);
+       dissector_add_uint("sctp.port", SCTP_PORT_SSH, ssh_handle);
 }
 }