BLOCKED
};
-enum plink_actions {
- PLINK_ACTION_UNDEFINED,
- PLINK_ACTION_OPEN,
- PLINK_ACTION_BLOCK,
-};
-
static int print_mpath_handler(struct nl_msg *msg, void *arg)
{
}
static int handle_mpath_get(struct nl80211_state *state,
- struct nl_cb *cb,
struct nl_msg *msg,
- int argc, char **argv)
+ int argc, char **argv,
+ enum id_input id)
{
unsigned char dst[ETH_ALEN];
NLA_PUT(msg, NL80211_ATTR_MAC, ETH_ALEN, dst);
- nl_cb_set(cb, NL_CB_VALID, NL_CB_CUSTOM, print_mpath_handler, NULL);
+ register_handler(print_mpath_handler, NULL);
return 0;
nla_put_failure:
"Remove the mesh path to the given node.");
static int handle_mpath_set(struct nl80211_state *state,
- struct nl_cb *cb,
struct nl_msg *msg,
- int argc, char **argv)
+ int argc, char **argv,
+ enum id_input id)
{
unsigned char dst[ETH_ALEN];
unsigned char next_hop[ETH_ALEN];
NLA_PUT(msg, NL80211_ATTR_MAC, ETH_ALEN, dst);
NLA_PUT(msg, NL80211_ATTR_MPATH_NEXT_HOP, ETH_ALEN, next_hop);
- nl_cb_set(cb, NL_CB_VALID, NL_CB_CUSTOM, print_mpath_handler, NULL);
+ register_handler(print_mpath_handler, NULL);
return 0;
nla_put_failure:
return -ENOBUFS;
"Set an existing mesh path's next hop.");
static int handle_mpath_dump(struct nl80211_state *state,
- struct nl_cb *cb,
struct nl_msg *msg,
- int argc, char **argv)
+ int argc, char **argv,
+ enum id_input id)
{
- printf("DEST ADDR NEXT HOP IFACE\tDSN\tMETRIC\tQLEN\t"
+ printf("DEST ADDR NEXT HOP IFACE\tSN\tMETRIC\tQLEN\t"
"EXPTIME\t\tDTIM\tDRET\tFLAGS\n");
- nl_cb_set(cb, NL_CB_VALID, NL_CB_CUSTOM, print_mpath_handler, NULL);
+ register_handler(print_mpath_handler, NULL);
return 0;
}
COMMAND(mpath, dump, NULL,