|
wimax-tools 1.4.4
|
#include <wimaxll.h>Go to the source code of this file.
Data Structures | |
| struct | wimaxll_cb_ctx |
| General structure for storing callback context. More... | |
| struct | wimaxll_handle |
| A WiMax control pipe handle. More... | |
Defines | |
| #define | __WIMAXLL_IFNAME_LEN 32 |
| #define | WIMAXLL_CB_CTX_INIT(_wmx) |
| Initialize a definition of struct wimaxll_cb_ctx. | |
Enumerations | |
| enum | |
Functions | |
| void | wimaxll_cb_ctx_init (struct wimaxll_cb_ctx *ctx, struct wimaxll_handle *wmx) |
| Initialize a struct wimaxll_cb_ctx. | |
| void | wimaxll_cb_maybe_set_result (struct wimaxll_cb_ctx *ctx, int val) |
| Set the result value in a callback context. | |
| int | wimaxll_wait_for_ack (struct wimaxll_handle *) |
| Wait for a netlink ACK and pass on the result code it passed. | |
| int | wimaxll_gnl_handle_msg_to_user (struct wimaxll_handle *, struct nl_msg *) |
| Callback to process an WIMAX_GNL_OP_MSG_TO_USER from the kernel. | |
| int | wimaxll_gnl_handle_state_change (struct wimaxll_handle *, struct nl_msg *) |
| Callback to process an WIMAX_GNL_RE_STATE_CHANGE from the kernel. | |
| int | wimaxll_gnl_error_cb (struct sockaddr_nl *, struct nlmsgerr *, void *) |
| Netlink callback to process netlink callback errors. | |
| int | wimaxll_gnl_ack_cb (struct nl_msg *msg, void *_mch) |
| Netlink callback to process an ack message and pass the 'error' code. | |
| void | wimaxll_msg (struct wimaxll_handle *, const char *fmt,...) __attribute__((format(printf |
| void int | nl_get_multicast_groups (struct nl_handle *, const char *, void(*cb)(void *, const char *, int), void *) |
| Enumerates the list of available multicast groups for a family. | |
| int | genl_ctrl_get_version (struct nl_handle *, const char *) |
| #define __WIMAXLL_IFNAME_LEN 32 |
| anonymous enum |
| int genl_ctrl_get_version | ( | struct nl_handle * | , |
| const char * | |||
| ) |
| void int nl_get_multicast_groups | ( | struct nl_handle * | handle, |
| const char * | family, | ||
| void(*)(void *, const char *, int) | cbf, | ||
| void * | priv | ||
| ) |
Enumerates the list of available multicast groups for a family.
| handle | netlink handle to use for querying the list |
| family | name of family to query for multicast groups |
| cbf | callback function to call with each multicast group's information. |
| priv | pointer to pass to the callback function |
Returns: 0 if ok, < 0 errno code on error.
Enumerates the multicast groups available for a generic netlink family and calls the callback with the arguments of each.
| int wimaxll_gnl_ack_cb | ( | struct nl_msg * | msg, |
| void * | _mch | ||
| ) |
Netlink callback to process an ack message and pass the 'error' code.
Referenced by wimaxll_recv(), and wimaxll_wait_for_ack().
| int wimaxll_gnl_error_cb | ( | struct sockaddr_nl * | , |
| struct nlmsgerr * | , | ||
| void * | |||
| ) |
Netlink callback to process netlink callback errors.
Referenced by wimaxll_recv(), and wimaxll_wait_for_ack().
| int wimaxll_gnl_handle_msg_to_user | ( | struct wimaxll_handle * | , |
| struct nl_msg * | |||
| ) |
Callback to process an WIMAX_GNL_OP_MSG_TO_USER from the kernel.
| int wimaxll_gnl_handle_state_change | ( | struct wimaxll_handle * | , |
| struct nl_msg * | |||
| ) |
Callback to process an WIMAX_GNL_RE_STATE_CHANGE from the kernel.
| void wimaxll_msg | ( | struct wimaxll_handle * | , |
| const char * | fmt, | ||
| ... | |||
| ) |
| int wimaxll_wait_for_ack | ( | struct wimaxll_handle * | ) |
Wait for a netlink ACK and pass on the result code it passed.
Referenced by wimaxll_msg_write(), wimaxll_reset(), wimaxll_rfkill(), and wimaxll_state_get().
1.7.3