diff options
author | Michal Labedzki <michal.labedzki@tieto.com> | 2014-02-09 18:37:44 +0100 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2014-03-19 17:01:09 +0000 |
commit | a68e3a410c210e798aa9c96c03ef5cc075f19ca9 (patch) | |
tree | 96fc7b51705754c8e8394cabe12d19f3dcf098ac /epan/dissectors | |
parent | 27ad4c033151ed4482e553370bc134337dd47db3 (diff) |
Wiretap: Add support for Android Logcat
Now Androit Logcat (Logger) binary logs are supported.
Try "adb logcat -Bf /sdcard/log.logcat; adb pull /sdcard/log.logcat".
Also there is possibility to save logs to text format like by "adb".
Change-Id: If7bfc53d3fbd549a0978d1dbf96f3fff671fd601
Reviewed-on: https://code.wireshark.org/review/235
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors')
-rw-r--r-- | epan/dissectors/packet-logcat.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/epan/dissectors/packet-logcat.c b/epan/dissectors/packet-logcat.c index 1a0b5e2b5e..8b61491dda 100644 --- a/epan/dissectors/packet-logcat.c +++ b/epan/dissectors/packet-logcat.c @@ -28,6 +28,7 @@ #include <epan/expert.h> #include <epan/exported_pdu.h> #include <epan/tap.h> +#include <wiretap/wtap.h> static int proto_logcat = -1; @@ -282,6 +283,8 @@ proto_register_logcat(void) void proto_reg_handoff_logcat(void) { + dissector_add_uint("wtap_encap", WTAP_ENCAP_LOGCAT, logcat_handle); + dissector_add_handle("tcp.port", logcat_handle); exported_pdu_tap = find_tap_id(EXPORT_PDU_TAP_NAME_LOGCAT); |