summaryrefslogtreecommitdiff
path: root/epan/dissectors/packet-coap.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dissectors/packet-coap.c')
-rw-r--r--epan/dissectors/packet-coap.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/epan/dissectors/packet-coap.c b/epan/dissectors/packet-coap.c
index 8bc0346f44..0cba22d6f6 100644
--- a/epan/dissectors/packet-coap.c
+++ b/epan/dissectors/packet-coap.c
@@ -35,6 +35,7 @@
#include <epan/packet.h>
#include <epan/expert.h>
#include <epan/wmem/wmem.h>
+#include "packet-dtls.h"
void proto_register_coap(void);
@@ -93,6 +94,7 @@ static dissector_handle_t coap_handle;
/* CoAP's IANA-assigned port (UDP only) number */
#define DEFAULT_COAP_PORT 5683
+#define DEFAULT_COAPS_PORT 5684
/* indicators whether those are to be showed or not */
#define DEFAULT_COAP_CTYPE_VALUE ~0U
@@ -1258,8 +1260,8 @@ void
proto_reg_handoff_coap(void)
{
media_type_dissector_table = find_dissector_table("media_type");
- dissector_add_uint_with_preference("tcp.port", DEFAULT_COAP_PORT, coap_handle);
dissector_add_uint_with_preference("udp.port", DEFAULT_COAP_PORT, coap_handle);
+ dtls_dissector_add(DEFAULT_COAPS_PORT, coap_handle);
}
/*