wimax-tools 1.4.4
Functions

/home/users/builder/rpm/BUILD/wimax-tools-1.4.4/lib/genl.c File Reference

#include <asm/errno.h>
#include <netlink/genl/genl.h>
#include <netlink/genl/family.h>
#include <netlink/genl/ctrl.h>
#include <netlink/msg.h>
#include <netlink/attr.h>
#include "internal.h"

Functions

int nl_get_multicast_groups (struct nl_handle *handle, const char *family, void(*cbf)(void *, const char *, int), void *priv)
 Enumerates the list of available multicast groups for a family.
int genl_ctrl_get_version (struct nl_handle *nlh, const char *name)

Function Documentation

int genl_ctrl_get_version ( struct nl_handle *  nlh,
const char *  name 
)
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.

Parameters:
handlenetlink handle to use for querying the list
familyname of family to query for multicast groups
cbfcallback function to call with each multicast group's information.
privpointer 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.