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