| Wireshark 4.7.3 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
i4b_trace.h
Go to the documentation of this file.
1
8
9#ifndef _I4B_TRACE_H_
10#define _I4B_TRACE_H_
11
12/*---------------------------------------------------------------------------*
13 * structure of the header at the beginning of every trace mbuf
14 *---------------------------------------------------------------------------*/
18 typedef struct {
19 uint32_t length;
20 uint32_t unit;
21 uint32_t type;
22#define TRC_CH_I 0
23#define TRC_CH_D 1
24#define TRC_CH_B1 2
25#define TRC_CH_B2 3
26 int32_t dir;
27#define FROM_TE 0
28#define FROM_NT 1
29 uint32_t trunc;
30 uint32_t count;
31 uint32_t ts_sec;
32 uint32_t ts_usec;
33} i4b_trace_hdr_t;
34
35#define INFO0 0 /* layer 1 */
36#define INFO1_8 1
37#define INFO1_10 2
38#define INFO2 3
39#define INFO3 4
40#define INFO4_8 5
41#define INFO4_10 6
42
43/*---------------------------------------------------------------------------*
44 * ioctl via /dev/i4btrc device(s):
45 * get/set current trace flag settings
46 *---------------------------------------------------------------------------*/
47
48#define I4B_TRC_GET _IOR('T', 0, int) /* get trace settings */
49#define I4B_TRC_SET _IOW('T', 1, int) /* set trace settings */
50
51#define TRACE_OFF 0x00 /* tracing off */
52#define TRACE_I 0x01 /* trace L1 INFO's on */
53#define TRACE_D_TX 0x02 /* trace D channel on */
54#define TRACE_D_RX 0x04 /* trace D channel on */
55#define TRACE_B_TX 0x08 /* trace B channel on */
56#define TRACE_B_RX 0x10 /* trace B channel on */
57
61 typedef struct {
62 int32_t rxunit;
63 int32_t rxflags;
64 int32_t txunit;
65 int32_t txflags;
66} i4b_trace_setupa_t;
67
68#define I4B_TRC_SETA _IOW('T', 2, i4b_trace_setupa_t) /* set analyze mode */
69#define I4B_TRC_RESETA _IOW('T', 3, int) /* reset analyze mode */
70
71#endif /* _I4B_TRACE_H_ */
i4b_trace_hdr_t
Header prepended to each ISDN4BSD kernel trace buffer entry describing a captured channel frame.
Definition i4b_trace.h:18
i4b_trace_hdr_t::count
uint32_t count
Definition i4b_trace.h:30
i4b_trace_hdr_t::dir
int32_t dir
Definition i4b_trace.h:26
i4b_trace_hdr_t::trunc
uint32_t trunc
Definition i4b_trace.h:29
i4b_trace_hdr_t::unit
uint32_t unit
Definition i4b_trace.h:20
i4b_trace_hdr_t::type
uint32_t type
Definition i4b_trace.h:21
i4b_trace_hdr_t::ts_usec
uint32_t ts_usec
Definition i4b_trace.h:32
i4b_trace_hdr_t::length
uint32_t length
Definition i4b_trace.h:19
i4b_trace_hdr_t::ts_sec
uint32_t ts_sec
Definition i4b_trace.h:31
i4b_trace_setupa_t
Configuration parameters specifying which ISDN controller units and channels to trace.
Definition i4b_trace.h:61
i4b_trace_setupa_t::txunit
int32_t txunit
Definition i4b_trace.h:64
i4b_trace_setupa_t::txflags
int32_t txflags
Definition i4b_trace.h:65
i4b_trace_setupa_t::rxflags
int32_t rxflags
Definition i4b_trace.h:63
i4b_trace_setupa_t::rxunit
int32_t rxunit
Definition i4b_trace.h:62