Wireshark 4.7.3
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
logcat.h
Go to the documentation of this file.
1
8
9#ifndef __LOGCAT_H__
10#define __LOGCAT_H__
11
12#include "wtap.h"
13
14/* The log format can be found on:
15 * https://android.googlesource.com/platform/system/core/+/master/include/log/logger.h
16 * Log format is assumed to be little-endian (Android platform).
17 */
18/* maximum size of a message payload in a log entry */
19#define LOGGER_ENTRY_MAX_PAYLOAD 4076
20
25 uint16_t len;
26 uint16_t __pad;
27 int32_t pid;
28 int32_t tid;
29 int32_t sec;
30 int32_t nsec;
31/* char msg[0]; */
32};
33
38 uint16_t len;
39 uint16_t hdr_size;
40 int32_t pid;
41 int32_t tid;
42 int32_t sec;
43 int32_t nsec;
44 union {
45 uint32_t euid;
46 uint32_t lid;
47 } id;
48/* char msg[0]; */
49};
50
61wtap_open_return_val logcat_open(wtap *wth, int *err, char **err_info);
62
73bool logcat_exported_pdu_length(const uint8_t *pd, unsigned caplen, unsigned *length);
74#endif
75
76/*
77 * Editor modelines - https://www.wireshark.org/tools/modelines.html
78 *
79 * Local variables:
80 * c-basic-offset: 4
81 * tab-width: 8
82 * indent-tabs-mode: nil
83 * End:
84 *
85 * vi: set shiftwidth=4 tabstop=8 expandtab:
86 * :indentSize=4:tabSize=8:noTabs=true:
87 */
wtap_open_return_val logcat_open(wtap *wth, int *err, char **err_info)
Opens a logcat capture file for reading.
Definition logcat.c:240
bool logcat_exported_pdu_length(const uint8_t *pd, unsigned caplen, unsigned *length)
Calculate the length of a PDU (Protocol Data Unit) in a Logcat packet.
Definition logcat.c:142
Version 2/3 Android logger entry header, extending v1 with a self-describing size field and an ID uni...
Definition logcat.h:37
uint32_t lid
Definition logcat.h:46
int32_t pid
Definition logcat.h:40
uint16_t hdr_size
Definition logcat.h:39
int32_t nsec
Definition logcat.h:43
int32_t tid
Definition logcat.h:41
int32_t sec
Definition logcat.h:42
uint16_t len
Definition logcat.h:38
uint32_t euid
Definition logcat.h:45
Version 1 Android logger entry header, preceding the log message payload.
Definition logcat.h:24
int32_t pid
Definition logcat.h:27
uint16_t len
Definition logcat.h:25
uint16_t __pad
Definition logcat.h:26
int32_t tid
Definition logcat.h:28
int32_t sec
Definition logcat.h:29
int32_t nsec
Definition logcat.h:30
Definition wtap_module.h:58
wtap_open_return_val
For registering file types that we can open.
Definition wtap.h:1851