Wireshark
4.5.0
The Wireshark network protocol analyzer
Toggle main menu visibility
Main Page
Related Pages
Topics
Namespaces
Namespace List
Namespace Members
All
Variables
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
a
b
c
d
e
f
g
h
i
m
o
p
r
s
t
u
v
w
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
Functions
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
Variables
Typedefs
a
b
c
d
e
f
g
h
i
m
p
r
s
t
u
v
w
Enumerations
Enumerator
a
b
c
e
f
h
i
n
o
r
s
t
w
Macros
_
a
b
c
d
e
f
g
h
i
j
m
n
o
p
r
s
t
u
v
w
x
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
Loading...
Searching...
No Matches
wiretap
logcat.h
Go to the documentation of this file.
1
9
#ifndef __LOGCAT_H__
10
#define __LOGCAT_H__
11
12
#include <glib.h>
13
14
#include "
wtap.h
"
15
16
/* The log format can be found on:
17
* https://android.googlesource.com/platform/system/core/+/master/include/log/logger.h
18
* Log format is assumed to be little-endian (Android platform).
19
*/
20
/* maximum size of a message payload in a log entry */
21
#define LOGGER_ENTRY_MAX_PAYLOAD 4076
22
23
struct
logger_entry
{
24
uint16_t len;
/* length of the payload */
25
uint16_t __pad;
/* no matter what, we get 2 bytes of padding */
26
int32_t pid;
/* generating process's pid */
27
int32_t tid;
/* generating process's tid */
28
int32_t sec;
/* seconds since Epoch */
29
int32_t nsec;
/* nanoseconds */
30
/* char msg[0]; */
/* the entry's payload */
31
};
23
struct
logger_entry
{
…
};
32
33
struct
logger_entry_v2
{
34
uint16_t len;
/* length of the payload */
35
uint16_t hdr_size;
/* sizeof(struct logger_entry_v2) */
36
int32_t pid;
/* generating process's pid */
37
int32_t tid;
/* generating process's tid */
38
int32_t sec;
/* seconds since Epoch */
39
int32_t nsec;
/* nanoseconds */
40
union
{
41
/* v1: not present */
42
uint32_t euid;
/* v2: effective UID of logger */
43
uint32_t lid;
/* v3: log id of the payload */
44
} id;
45
/* char msg[0]; */
/* the entry's payload */
46
};
33
struct
logger_entry_v2
{
…
};
47
48
wtap_open_return_val logcat_open(
wtap
*wth,
int
*err,
char
**err_info);
49
50
int
logcat_exported_pdu_length(
const
uint8_t *pd);
51
#endif
52
53
/*
54
* Editor modelines - https://www.wireshark.org/tools/modelines.html
55
*
56
* Local variables:
57
* c-basic-offset: 4
58
* tab-width: 8
59
* indent-tabs-mode: nil
60
* End:
61
*
62
* vi: set shiftwidth=4 tabstop=8 expandtab:
63
* :indentSize=4:tabSize=8:noTabs=true:
64
*/
logger_entry_v2
Definition
logcat.h:33
logger_entry
Definition
logcat.h:23
wtap
Definition
wtap-int.h:37
wtap.h
Generated by
1.9.8