#include <net/if.h>
#include <errno.h>
-#include <string.h>
#include <netlink/genl/genl.h>
#include <netlink/genl/family.h>
}
static int handle_mpp_get(struct nl80211_state *state,
- struct nl_cb *cb,
struct nl_msg *msg,
int argc, char **argv,
enum id_input id)
NLA_PUT(msg, NL80211_ATTR_MAC, ETH_ALEN, dst);
- nl_cb_set(cb, NL_CB_VALID, NL_CB_CUSTOM, print_mpp_handler, NULL);
+ register_handler(print_mpp_handler, NULL);
return 0;
nla_put_failure:
"Get information on mesh proxy path to the given node.");
static int handle_mpp_dump(struct nl80211_state *state,
- struct nl_cb *cb,
struct nl_msg *msg,
int argc, char **argv,
enum id_input id)
{
printf("DEST ADDR PROXY NODE IFACE\n");
- nl_cb_set(cb, NL_CB_VALID, NL_CB_CUSTOM, print_mpp_handler, NULL);
+ register_handler(print_mpp_handler, NULL);
return 0;
}
COMMAND(mpp, dump, NULL,