Data Structures | |
struct | mcast_channel |
struct | udp_channel |
struct | tcp_channel |
union | channel_type_conf |
struct | channel_conf |
struct | channel_ops |
struct | channel |
struct | multichannel |
Macros | |
#define | CHANNEL_F_DEFAULT (1 << 0) |
#define | CHANNEL_F_BUFFERED (1 << 1) |
#define | CHANNEL_F_STREAM (1 << 2) |
#define | CHANNEL_F_ERRORS (1 << 3) |
#define | CHANNEL_F_ACCEPT (1 << 4) |
#define | CHANNEL_F_MAX (1 << 5) |
#define | CHANNEL_T_DATAGRAM 0 |
#define | CHANNEL_T_STREAM 1 |
#define | MULTICHANNEL_MAX 4 |
Enumerations | |
enum | { CHANNEL_NONE, CHANNEL_MCAST, CHANNEL_UDP, CHANNEL_TCP, CHANNEL_MAX } |
#define CHANNEL_F_ACCEPT (1 << 4) |
#define CHANNEL_F_BUFFERED (1 << 1) |
Referenced by channel_close(), channel_open(), channel_send(), and channel_send_flush().
#define CHANNEL_F_DEFAULT (1 << 0) |
Referenced by multichannel_open().
#define CHANNEL_F_ERRORS (1 << 3) |
Referenced by channel_send(), and channel_send_flush().
#define CHANNEL_F_MAX (1 << 5) |
Referenced by channel_open().
#define CHANNEL_F_STREAM (1 << 2) |
#define CHANNEL_T_DATAGRAM 0 |
#define CHANNEL_T_STREAM 1 |
#define MULTICHANNEL_MAX 4 |
Referenced by multichannel_open().
References channel_ops::accept, and channel::ops.
References channel_ops::accept_isset, and channel::ops.
References channel::buffer, CHANNEL_F_BUFFERED, channel::channel_flags, channel_ops::close, channel::data, and channel::ops.
Referenced by multichannel_close(), and multichannel_open().
void channel_end | ( | void | ) |
References channel::data, channel_ops::get_fd, and channel::ops.
int channel_init | ( | void | ) |
References CHANNEL_MCAST, channel_mcast, CHANNEL_TCP, channel_tcp, CHANNEL_UDP, channel_udp, CONFIG, NULL, and queue_create().
References channel_ops::isset, and channel::ops.
struct channel* channel_open | ( | struct channel_conf * | conf | ) |
References channel::buffer, CHANNEL_F_BUFFERED, CHANNEL_F_MAX, channel_conf::channel_flags, channel::channel_flags, channel::channel_ifindex, channel::channel_ifmtu, channel_conf::channel_ifname, CHANNEL_MAX, channel_conf::channel_type, channel::channel_type, channel::data, channel_ops::headersiz, NULL, channel_ops::open, channel::ops, and channel_conf::u.
Referenced by multichannel_open().
References channel::data, channel::ops, and channel_ops::recv.
Referenced by multichannel_recv().
References channel::buffer, CHANNEL_F_BUFFERED, CHANNEL_F_ERRORS, channel::channel_flags, channel_buffer::data, channel::data, nethdr::len, channel_buffer::len, len, channel::ops, and channel_ops::send.
Referenced by multichannel_send().
References channel::buffer, CHANNEL_F_BUFFERED, CHANNEL_F_ERRORS, channel::channel_flags, channel_buffer::data, channel::data, channel_buffer::len, channel::ops, and channel_ops::send.
Referenced by multichannel_send_flush().
References channel::ops, and channel_ops::stats.
Referenced by multichannel_stats().
void channel_stats_extended | ( | struct channel * | c, |
int | active, | ||
struct nlif_handle * | h, | ||
int | fd | ||
) |
References channel::ops, and channel_ops::stats_extended.
Referenced by multichannel_stats_extended().
References channel::ops, and channel_ops::type.
void multichannel_change_current_channel | ( | struct multichannel * | m, |
struct channel * | c | ||
) |
References multichannel::current.
void multichannel_close | ( | struct multichannel * | m | ) |
References multichannel::channel, channel_close(), and multichannel::channel_num.
int multichannel_get_current_ifindex | ( | struct multichannel * | m | ) |
References channel::channel_ifindex, and multichannel::current.
int multichannel_get_ifindex | ( | struct multichannel * | m, |
int | i | ||
) |
References multichannel::channel, and channel::channel_ifindex.
struct multichannel* multichannel_open | ( | struct channel_conf * | conf, |
int | len | ||
) |
References multichannel::channel, channel_close(), CHANNEL_F_DEFAULT, multichannel::channel_num, channel_open(), multichannel::current, len, MULTICHANNEL_MAX, and NULL.
int multichannel_recv | ( | struct multichannel * | c, |
char * | buf, | ||
int | size | ||
) |
int multichannel_send | ( | struct multichannel * | c, |
const struct nethdr * | net | ||
) |
int multichannel_send_flush | ( | struct multichannel * | c | ) |
References channel_send_flush(), and multichannel::current.
void multichannel_set_current_channel | ( | struct multichannel * | m, |
int | i | ||
) |
References multichannel::channel, and multichannel::current.
void multichannel_stats | ( | struct multichannel * | m, |
int | fd | ||
) |
void multichannel_stats_extended | ( | struct multichannel * | m, |
struct nlif_handle * | h, | ||
int | fd | ||
) |
References multichannel::channel, multichannel::channel_num, channel_stats_extended(), and multichannel::current.