Lines Matching refs:attrs
155 struct nlattr *attrs; in __tipc_nl_add_net() local
162 attrs = nla_nest_start(msg->skb, TIPC_NLA_NET); in __tipc_nl_add_net()
163 if (!attrs) in __tipc_nl_add_net()
169 nla_nest_end(msg->skb, attrs); in __tipc_nl_add_net()
175 nla_nest_cancel(msg->skb, attrs); in __tipc_nl_add_net()
211 struct nlattr *attrs[TIPC_NLA_NET_MAX + 1]; in tipc_nl_net_set() local
214 if (!info->attrs[TIPC_NLA_NET]) in tipc_nl_net_set()
217 err = nla_parse_nested(attrs, TIPC_NLA_NET_MAX, in tipc_nl_net_set()
218 info->attrs[TIPC_NLA_NET], in tipc_nl_net_set()
223 if (attrs[TIPC_NLA_NET_ID]) { in tipc_nl_net_set()
230 val = nla_get_u32(attrs[TIPC_NLA_NET_ID]); in tipc_nl_net_set()
237 if (attrs[TIPC_NLA_NET_ADDR]) { in tipc_nl_net_set()
244 addr = nla_get_u32(attrs[TIPC_NLA_NET_ADDR]); in tipc_nl_net_set()