Lines Matching refs:attrs
152 struct nlattr *attrs; in __tipc_nl_add_net() local
159 attrs = nla_nest_start(msg->skb, TIPC_NLA_NET); in __tipc_nl_add_net()
160 if (!attrs) in __tipc_nl_add_net()
166 nla_nest_end(msg->skb, attrs); in __tipc_nl_add_net()
172 nla_nest_cancel(msg->skb, attrs); in __tipc_nl_add_net()
208 struct nlattr *attrs[TIPC_NLA_NET_MAX + 1]; in tipc_nl_net_set() local
211 if (!info->attrs[TIPC_NLA_NET]) in tipc_nl_net_set()
214 err = nla_parse_nested(attrs, TIPC_NLA_NET_MAX, in tipc_nl_net_set()
215 info->attrs[TIPC_NLA_NET], in tipc_nl_net_set()
220 if (attrs[TIPC_NLA_NET_ID]) { in tipc_nl_net_set()
227 val = nla_get_u32(attrs[TIPC_NLA_NET_ID]); in tipc_nl_net_set()
234 if (attrs[TIPC_NLA_NET_ADDR]) { in tipc_nl_net_set()
241 addr = nla_get_u32(attrs[TIPC_NLA_NET_ADDR]); in tipc_nl_net_set()