Lines Matching refs:attrs
1140 struct nlattr *attrs; in __tipc_nl_add_node() local
1147 attrs = nla_nest_start(msg->skb, TIPC_NLA_NODE); in __tipc_nl_add_node()
1148 if (!attrs) in __tipc_nl_add_node()
1157 nla_nest_end(msg->skb, attrs); in __tipc_nl_add_node()
1163 nla_nest_cancel(msg->skb, attrs); in __tipc_nl_add_node()
1594 struct nlattr *attrs[TIPC_NLA_NET_MAX + 1]; in tipc_nl_peer_rm() local
1601 if (!info->attrs[TIPC_NLA_NET]) in tipc_nl_peer_rm()
1604 err = nla_parse_nested(attrs, TIPC_NLA_NET_MAX, in tipc_nl_peer_rm()
1605 info->attrs[TIPC_NLA_NET], tipc_nl_net_policy, in tipc_nl_peer_rm()
1610 if (!attrs[TIPC_NLA_NET_ADDR]) in tipc_nl_peer_rm()
1613 addr = nla_get_u32(attrs[TIPC_NLA_NET_ADDR]); in tipc_nl_peer_rm()
1762 struct nlattr *attrs[TIPC_NLA_LINK_MAX + 1]; in tipc_nl_node_set_link() local
1767 if (!info->attrs[TIPC_NLA_LINK]) in tipc_nl_node_set_link()
1770 err = nla_parse_nested(attrs, TIPC_NLA_LINK_MAX, in tipc_nl_node_set_link()
1771 info->attrs[TIPC_NLA_LINK], in tipc_nl_node_set_link()
1776 if (!attrs[TIPC_NLA_LINK_NAME]) in tipc_nl_node_set_link()
1779 name = nla_data(attrs[TIPC_NLA_LINK_NAME]); in tipc_nl_node_set_link()
1782 return tipc_nl_bc_link_set(net, attrs); in tipc_nl_node_set_link()
1796 if (attrs[TIPC_NLA_LINK_PROP]) { in tipc_nl_node_set_link()
1799 err = tipc_nl_parse_link_prop(attrs[TIPC_NLA_LINK_PROP], in tipc_nl_node_set_link()
1835 struct nlattr *attrs[TIPC_NLA_LINK_MAX + 1]; in tipc_nl_node_get_link() local
1843 if (!info->attrs[TIPC_NLA_LINK]) in tipc_nl_node_get_link()
1846 err = nla_parse_nested(attrs, TIPC_NLA_LINK_MAX, in tipc_nl_node_get_link()
1847 info->attrs[TIPC_NLA_LINK], in tipc_nl_node_get_link()
1852 if (!attrs[TIPC_NLA_LINK_NAME]) in tipc_nl_node_get_link()
1855 name = nla_data(attrs[TIPC_NLA_LINK_NAME]); in tipc_nl_node_get_link()
1904 struct nlattr *attrs[TIPC_NLA_LINK_MAX + 1]; in tipc_nl_node_reset_link_stats() local
1908 if (!info->attrs[TIPC_NLA_LINK]) in tipc_nl_node_reset_link_stats()
1911 err = nla_parse_nested(attrs, TIPC_NLA_LINK_MAX, in tipc_nl_node_reset_link_stats()
1912 info->attrs[TIPC_NLA_LINK], in tipc_nl_node_reset_link_stats()
1917 if (!attrs[TIPC_NLA_LINK_NAME]) in tipc_nl_node_reset_link_stats()
1920 link_name = nla_data(attrs[TIPC_NLA_LINK_NAME]); in tipc_nl_node_reset_link_stats()
2044 struct nlattr *attrs[TIPC_NLA_MON_MAX + 1]; in tipc_nl_node_set_monitor() local
2048 if (!info->attrs[TIPC_NLA_MON]) in tipc_nl_node_set_monitor()
2051 err = nla_parse_nested(attrs, TIPC_NLA_MON_MAX, in tipc_nl_node_set_monitor()
2052 info->attrs[TIPC_NLA_MON], in tipc_nl_node_set_monitor()
2057 if (attrs[TIPC_NLA_MON_ACTIVATION_THRESHOLD]) { in tipc_nl_node_set_monitor()
2060 val = nla_get_u32(attrs[TIPC_NLA_MON_ACTIVATION_THRESHOLD]); in tipc_nl_node_set_monitor()
2071 struct nlattr *attrs; in __tipc_nl_add_monitor_prop() local
2080 attrs = nla_nest_start(msg->skb, TIPC_NLA_MON); in __tipc_nl_add_monitor_prop()
2081 if (!attrs) in __tipc_nl_add_monitor_prop()
2089 nla_nest_end(msg->skb, attrs); in __tipc_nl_add_monitor_prop()
2095 nla_nest_cancel(msg->skb, attrs); in __tipc_nl_add_monitor_prop()
2161 struct nlattr **attrs; in tipc_nl_node_dump_monitor_peer() local
2164 err = tipc_nlmsg_parse(cb->nlh, &attrs); in tipc_nl_node_dump_monitor_peer()
2168 if (!attrs[TIPC_NLA_MON]) in tipc_nl_node_dump_monitor_peer()
2172 attrs[TIPC_NLA_MON], in tipc_nl_node_dump_monitor_peer()