29 lines
1.1 KiB
Diff
29 lines
1.1 KiB
Diff
|
From 133dbc21785ebcdf571063ee1c4bcf273733c97b Mon Sep 17 00:00:00 2001
|
||
|
From: Anders Broman <anders.broman@ericsson.com>
|
||
|
Date: Wed, 01 Jul 2020 08:40:03 +0200
|
||
|
Subject: [PATCH] BER: Add the posibillity to do "decode as" on an UDP port.
|
||
|
|
||
|
Change-Id: I2897b32b58f154c9998316b16d24bf97ef544153
|
||
|
Reviewed-on: https://code.wireshark.org/review/37628
|
||
|
Petri-Dish: Anders Broman <a.broman58@gmail.com>
|
||
|
Tested-by: Petri Dish Buildbot
|
||
|
Reviewed-by: Anders Broman <a.broman58@gmail.com>
|
||
|
---
|
||
|
|
||
|
diff --git a/epan/dissectors/packet-ber.c b/epan/dissectors/packet-ber.c
|
||
|
index 15c2bb8..16bbf4f 100644
|
||
|
--- a/epan/dissectors/packet-ber.c
|
||
|
+++ b/epan/dissectors/packet-ber.c
|
||
|
@@ -4654,9 +4654,10 @@
|
||
|
syntax_names[i].value = 0;
|
||
|
syntax_names[i].strptr = NULL;
|
||
|
|
||
|
- /* allow the dissection of BER/DER carried over a TCP transport
|
||
|
+ /* allow the dissection of BER/DER carried over a TCP/UDP transport
|
||
|
by using "Decode As..." */
|
||
|
dissector_add_for_decode_as_with_preference("tcp.port", ber_handle);
|
||
|
+ dissector_add_for_decode_as_with_preference("udp.port", ber_handle);
|
||
|
|
||
|
ber_update_oids();
|
||
|
}
|