Lines Matching refs:attrs
156 struct nlattr *attrs; in __tipc_nl_add_net() local
164 attrs = nla_nest_start(msg->skb, TIPC_NLA_NET); in __tipc_nl_add_net()
165 if (!attrs) in __tipc_nl_add_net()
174 nla_nest_end(msg->skb, attrs); in __tipc_nl_add_net()
180 nla_nest_cancel(msg->skb, attrs); in __tipc_nl_add_net()
214 struct nlattr *attrs[TIPC_NLA_NET_MAX + 1]; in __tipc_nl_net_set() local
219 if (!info->attrs[TIPC_NLA_NET]) in __tipc_nl_net_set()
222 err = nla_parse_nested(attrs, TIPC_NLA_NET_MAX, in __tipc_nl_net_set()
223 info->attrs[TIPC_NLA_NET], tipc_nl_net_policy, in __tipc_nl_net_set()
233 if (attrs[TIPC_NLA_NET_ID]) { in __tipc_nl_net_set()
236 val = nla_get_u32(attrs[TIPC_NLA_NET_ID]); in __tipc_nl_net_set()
243 if (attrs[TIPC_NLA_NET_ADDR]) { in __tipc_nl_net_set()
246 addr = nla_get_u32(attrs[TIPC_NLA_NET_ADDR]); in __tipc_nl_net_set()
253 if (attrs[TIPC_NLA_NET_NODEID]) { in __tipc_nl_net_set()
258 if (!attrs[TIPC_NLA_NET_NODEID_W1]) in __tipc_nl_net_set()
260 *w0 = nla_get_u64(attrs[TIPC_NLA_NET_NODEID]); in __tipc_nl_net_set()
261 *w1 = nla_get_u64(attrs[TIPC_NLA_NET_NODEID_W1]); in __tipc_nl_net_set()