Lines Matching refs:attrs
165 struct nlattr *attrs; in __tipc_nl_add_net() local
173 attrs = nla_nest_start_noflag(msg->skb, TIPC_NLA_NET); in __tipc_nl_add_net()
174 if (!attrs) in __tipc_nl_add_net()
183 nla_nest_end(msg->skb, attrs); in __tipc_nl_add_net()
189 nla_nest_cancel(msg->skb, attrs); in __tipc_nl_add_net()
223 struct nlattr *attrs[TIPC_NLA_NET_MAX + 1]; in __tipc_nl_net_set() local
228 if (!info->attrs[TIPC_NLA_NET]) in __tipc_nl_net_set()
231 err = nla_parse_nested_deprecated(attrs, TIPC_NLA_NET_MAX, in __tipc_nl_net_set()
232 info->attrs[TIPC_NLA_NET], in __tipc_nl_net_set()
242 if (attrs[TIPC_NLA_NET_ID]) { in __tipc_nl_net_set()
245 val = nla_get_u32(attrs[TIPC_NLA_NET_ID]); in __tipc_nl_net_set()
252 if (attrs[TIPC_NLA_NET_ADDR]) { in __tipc_nl_net_set()
255 addr = nla_get_u32(attrs[TIPC_NLA_NET_ADDR]); in __tipc_nl_net_set()
262 if (attrs[TIPC_NLA_NET_NODEID]) { in __tipc_nl_net_set()
267 if (!attrs[TIPC_NLA_NET_NODEID_W1]) in __tipc_nl_net_set()
269 *w0 = nla_get_u64(attrs[TIPC_NLA_NET_NODEID]); in __tipc_nl_net_set()
270 *w1 = nla_get_u64(attrs[TIPC_NLA_NET_NODEID_W1]); in __tipc_nl_net_set()
290 struct nlattr *attrs; in __tipc_nl_addr_legacy_get() local
298 attrs = nla_nest_start(msg->skb, TIPC_NLA_NET); in __tipc_nl_addr_legacy_get()
299 if (!attrs) in __tipc_nl_addr_legacy_get()
306 nla_nest_end(msg->skb, attrs); in __tipc_nl_addr_legacy_get()
312 nla_nest_cancel(msg->skb, attrs); in __tipc_nl_addr_legacy_get()