Lines Matching refs:attrs
182 struct nlattr *attrs; in __tipc_nl_add_net() local
190 attrs = nla_nest_start_noflag(msg->skb, TIPC_NLA_NET); in __tipc_nl_add_net()
191 if (!attrs) in __tipc_nl_add_net()
200 nla_nest_end(msg->skb, attrs); in __tipc_nl_add_net()
206 nla_nest_cancel(msg->skb, attrs); in __tipc_nl_add_net()
240 struct nlattr *attrs[TIPC_NLA_NET_MAX + 1]; in __tipc_nl_net_set() local
245 if (!info->attrs[TIPC_NLA_NET]) in __tipc_nl_net_set()
248 err = nla_parse_nested_deprecated(attrs, TIPC_NLA_NET_MAX, in __tipc_nl_net_set()
249 info->attrs[TIPC_NLA_NET], in __tipc_nl_net_set()
259 if (attrs[TIPC_NLA_NET_ID]) { in __tipc_nl_net_set()
262 val = nla_get_u32(attrs[TIPC_NLA_NET_ID]); in __tipc_nl_net_set()
269 if (attrs[TIPC_NLA_NET_ADDR]) { in __tipc_nl_net_set()
272 addr = nla_get_u32(attrs[TIPC_NLA_NET_ADDR]); in __tipc_nl_net_set()
279 if (attrs[TIPC_NLA_NET_NODEID]) { in __tipc_nl_net_set()
284 if (!attrs[TIPC_NLA_NET_NODEID_W1]) in __tipc_nl_net_set()
286 *w0 = nla_get_u64(attrs[TIPC_NLA_NET_NODEID]); in __tipc_nl_net_set()
287 *w1 = nla_get_u64(attrs[TIPC_NLA_NET_NODEID_W1]); in __tipc_nl_net_set()