Lines Matching refs:token
180 struct nlattr *token = info->attrs[MPTCP_PM_ATTR_TOKEN]; in mptcp_nl_cmd_announce() local
187 if (!addr || !token) { in mptcp_nl_cmd_announce()
192 token_val = nla_get_u32(token); in mptcp_nl_cmd_announce()
196 NL_SET_ERR_MSG_ATTR(info->extack, token, "invalid token"); in mptcp_nl_cmd_announce()
277 struct nlattr *token = info->attrs[MPTCP_PM_ATTR_TOKEN]; in mptcp_nl_cmd_remove() local
287 if (!id || !token) { in mptcp_nl_cmd_remove()
293 token_val = nla_get_u32(token); in mptcp_nl_cmd_remove()
297 NL_SET_ERR_MSG_ATTR(info->extack, token, "invalid token"); in mptcp_nl_cmd_remove()
345 struct nlattr *token = info->attrs[MPTCP_PM_ATTR_TOKEN]; in mptcp_nl_cmd_sf_create() local
355 if (!laddr || !raddr || !token) { in mptcp_nl_cmd_sf_create()
360 token_val = nla_get_u32(token); in mptcp_nl_cmd_sf_create()
364 NL_SET_ERR_MSG_ATTR(info->extack, token, "invalid token"); in mptcp_nl_cmd_sf_create()
469 struct nlattr *token = info->attrs[MPTCP_PM_ATTR_TOKEN]; in mptcp_nl_cmd_sf_destroy() local
478 if (!laddr || !raddr || !token) { in mptcp_nl_cmd_sf_destroy()
483 token_val = nla_get_u32(token); in mptcp_nl_cmd_sf_destroy()
487 NL_SET_ERR_MSG_ATTR(info->extack, token, "invalid token"); in mptcp_nl_cmd_sf_destroy()
554 int mptcp_userspace_pm_set_flags(struct net *net, struct nlattr *token, in mptcp_userspace_pm_set_flags() argument
562 token_val = nla_get_u32(token); in mptcp_userspace_pm_set_flags()