Logo Search packages:      
Sourcecode: libnl2 version File versions  Download package

Socket
[Core]


Allocation

static struct nl_sock * __alloc_socket (struct nl_cb *cb)
struct nl_sock * nl_socket_alloc (void)
struct nl_sock * nl_socket_alloc_cb (struct nl_cb *cb)
void nl_socket_free (struct nl_sock *sk)

Group Subscriptions

void nl_join_groups (struct nl_sock *sk, int groups)
int nl_socket_add_membership (struct nl_sock *sk, int group)
int nl_socket_add_memberships (struct nl_sock *sk, int group,...)
int nl_socket_drop_membership (struct nl_sock *sk, int group)
int nl_socket_drop_memberships (struct nl_sock *sk, int group,...)

Sequence Numbers

void nl_socket_disable_auto_ack (struct nl_sock *sk)
void nl_socket_disable_seq_check (struct nl_sock *sk)
void nl_socket_enable_auto_ack (struct nl_sock *sk)
unsigned int nl_socket_use_seq (struct nl_sock *sk)
static int noop_seq_check (struct nl_msg *msg, void *arg)

File Descriptor

void nl_socket_disable_msg_peek (struct nl_sock *sk)
void nl_socket_enable_msg_peek (struct nl_sock *sk)
int nl_socket_get_fd (struct nl_sock *sk)
int nl_socket_set_nonblocking (struct nl_sock *sk)

Callback Handler

struct nl_cb * nl_socket_get_cb (struct nl_sock *sk)
int nl_socket_modify_cb (struct nl_sock *sk, enum nl_cb_type type, enum nl_cb_kind kind, nl_recvmsg_msg_cb_t func, void *arg)
void nl_socket_set_cb (struct nl_sock *sk, struct nl_cb *cb)

Source Idenficiation

uint32_t nl_socket_get_local_port (struct nl_sock *sk)
void nl_socket_set_local_port (struct nl_sock *sk, uint32_t port)

Peer Identfication

uint32_t nl_socket_get_peer_port (struct nl_sock *sk)
void nl_socket_set_peer_port (struct nl_sock *sk, uint32_t port)

Utilities

int nl_socket_recv_pktinfo (struct nl_sock *sk, int state)
int nl_socket_set_buffer_size (struct nl_sock *sk, int rxbuf, int txbuf)
int nl_socket_set_passcred (struct nl_sock *sk, int state)

Functions

static uint32_t generate_local_port (void)
static void __init init_default_cb (void)
static void release_local_port (uint32_t port)

Variables

static int default_cb = NL_CB_DEFAULT
static uint32_t used_ports_map [32]


Generated by  Doxygen 1.6.0   Back to index