31#include <osmocom/core/select.h>
32#include <osmocom/core/utils.h>
124#define E1DP_TS_OPEN_F_FORCE 0x80
128#define E1DP_MAGIC 0x01e1
130#define E1DP_MAX_LEN 4096
132#define E1DP_TS_SUPERCHAN 0xfe
135#define E1DP_INVALID 0xff
137#define E1DP_DEFAULT_SOCKET "/tmp/osmo-e1d.ctl"
140#define E1DP_MAX_SIZE_HDLC 264
const struct value_string osmo_e1dp_line_mode_names[]
const struct value_string osmo_e1dp_ts_mode_names[]
osmo_e1dp_line_mode
e1d CTL protocol line mode.
Definition proto.h:102
@ E1DP_LMODE_E1OIP
Line is used in E1oIP mode (not available to CTL clients)
Definition proto.h:110
@ E1DP_LMODE_SUPERCHANNEL
Line is used as superchannel (31TS combined together)
Definition proto.h:108
@ E1DP_LMODE_OFF
Line is switched off.
Definition proto.h:104
@ E1DP_LMODE_CHANNELIZED
Line is used in channelized mode with (64kBps) timeslots.
Definition proto.h:106
osmo_e1dp_msg_type
e1d CTL protocol message type definition.
Definition proto.h:36
@ E1DP_CMD_TS_OPEN
Open a given E1 timeslot.
Definition proto.h:57
@ E1DP_EVT_AIS_ON
Received alarm indication signal from interface.
Definition proto.h:70
@ E1DP_EVT_LOF_OFF
Ceased frame loss from interface.
Definition proto.h:85
@ E1DP_EVT_LOS_OFF
Ceased signal loss from interface.
Definition proto.h:67
@ E1DP_CMD_SABITS
Send Sa bits to line.
Definition proto.h:61
@ E1DP_EVT_AIS_OFF
Ceased alarm indication signal from interface.
Definition proto.h:73
@ E1DP_CMD_LINE_CONFIG
Configure a given E1 line.
Definition proto.h:51
@ E1DP_CMD_TS_QUERY
Query information about E1 timeslot(s).
Definition proto.h:47
@ E1DP_EVT_LOF_ON
Received frame loss from interface.
Definition proto.h:82
@ E1DP_EVT_TYPE
Message is an event.
Definition proto.h:92
@ E1DP_ERR_TYPE
Message is an error.
Definition proto.h:96
@ E1DP_EVT_RAI_OFF
Ceased remote alarm indication from interface.
Definition proto.h:79
@ E1DP_EVT_RAI_ON
Received remote alarm indication from interface.
Definition proto.h:76
@ E1DP_CMD_INTF_QUERY
Query information about E1 interface(s).
Definition proto.h:39
@ E1DP_RESP_TYPE
Message is a response
Definition proto.h:94
@ E1DP_EVT_LOS_ON
Received signal loss from interface.
Definition proto.h:64
@ E1DP_EVT_SABITS
Received Sa bits from interface.
Definition proto.h:89
@ E1DP_TYPE_MSK
Mask to separate type from command.
Definition proto.h:98
@ E1DP_CMD_LINE_QUERY
Query information about E1 line(s).
Definition proto.h:43
struct msgb * osmo_e1dp_recv(struct osmo_fd *ofd, int *fd)
const struct value_string osmo_e1dp_msg_type_names[]
osmo_e1dp_ts_mode
e1d CTL protocol timeslot mode.
Definition proto.h:114
@ E1DP_TSMODE_HDLCFCS
Timeslot is in HLDC-FCS mode; e1d will run software HDLC processor.
Definition proto.h:120
@ E1DP_TSMODE_RAW
Timeslot is in RAW mode, containing transparent 64kBps bitstream.
Definition proto.h:118
@ E1DP_TSMODE_OFF
Timeslot is switched off.
Definition proto.h:116
int osmo_e1dp_send(struct osmo_fd *ofd, struct msgb *msgb, int fd)
struct osmo_e1dp_msg_hdr __attribute__((packed))
Information about an E1 interface.
Definition proto.h:154
uint8_t id
Definition proto.h:155
uint8_t n_lines
Definition proto.h:156
Configuration of an E1 line.
Definition proto.h:160
uint8_t mode
Definition proto.h:161
Information about an E1 line.
Definition proto.h:165
uint8_t status
E1 line configuration.
Definition proto.h:168
uint8_t id
Definition proto.h:166
struct osmo_e1dp_line_config cfg
Definition proto.h:167
message header of osmo-e1d CTL protocol.
Definition proto.h:143
uint8_t intf
Definition proto.h:148
uint16_t magic
Definition proto.h:144
uint8_t ts
Definition proto.h:150
uint8_t line
Definition proto.h:149
uint16_t len
Definition proto.h:145
uint8_t type
Definition proto.h:147
Configuration of an E1 timeslot.
Definition proto.h:172
uint8_t flags
Definition proto.h:174
uint16_t read_bufsize
Definition proto.h:175
uint8_t mode
Definition proto.h:173
Information about an E1 timeslot.
Definition proto.h:179
uint8_t id
Definition proto.h:180
uint8_t status
Definition proto.h:182
struct osmo_e1dp_ts_config cfg
Definition proto.h:181