Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
i4b_trace.h
Go to the documentation of this file.
1
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 *---------------------------------------------------------------------------*/
15typedef struct {
16 uint32_t length; /* length of the following mbuf */
17 uint32_t unit; /* controller unit number */
18 uint32_t type; /* type of channel */
19#define TRC_CH_I 0 /* Layer 1 INFO's */
20#define TRC_CH_D 1 /* D channel */
21#define TRC_CH_B1 2 /* B1 channel */
22#define TRC_CH_B2 3 /* B2 channel */
23 int32_t dir; /* direction */
24#define FROM_TE 0 /* user -> network */
25#define FROM_NT 1 /* network -> user */
26 uint32_t trunc; /* # of truncated bytes (frame > MCLBYTES) */
27 uint32_t count; /* frame count for this unit/type */
28 uint32_t ts_sec; /* timestamp seconds */
29 uint32_t ts_usec; /* timestamp microseconds */
31
32#define INFO0 0 /* layer 1 */
33#define INFO1_8 1
34#define INFO1_10 2
35#define INFO2 3
36#define INFO3 4
37#define INFO4_8 5
38#define INFO4_10 6
39
40/*---------------------------------------------------------------------------*
41 * ioctl via /dev/i4btrc device(s):
42 * get/set current trace flag settings
43 *---------------------------------------------------------------------------*/
44
45#define I4B_TRC_GET _IOR('T', 0, int) /* get trace settings */
46#define I4B_TRC_SET _IOW('T', 1, int) /* set trace settings */
47
48#define TRACE_OFF 0x00 /* tracing off */
49#define TRACE_I 0x01 /* trace L1 INFO's on */
50#define TRACE_D_TX 0x02 /* trace D channel on */
51#define TRACE_D_RX 0x04 /* trace D channel on */
52#define TRACE_B_TX 0x08 /* trace B channel on */
53#define TRACE_B_RX 0x10 /* trace B channel on */
54
55typedef struct {
56 int32_t rxunit; /* unit # for rx frames */
57 int32_t rxflags; /* d and/or b channel */
58 int32_t txunit; /* unit # for tx frames */
59 int32_t txflags; /* d and/or b channel */
61
62#define I4B_TRC_SETA _IOW('T', 2, i4b_trace_setupa_t) /* set analyze mode */
63#define I4B_TRC_RESETA _IOW('T', 3, int) /* reset analyze mode */
64
65#endif /* _I4B_TRACE_H_ */
Definition i4b_trace.h:15
Definition i4b_trace.h:55