Lines Matching refs:ret_val

80 	int ret_val = -EINVAL;  in netlbl_mgmt_add_common()  local
96 ret_val = -ENOMEM; in netlbl_mgmt_add_common()
155 ret_val = -ENOMEM; in netlbl_mgmt_add_common()
163 ret_val = -EINVAL; in netlbl_mgmt_add_common()
168 ret_val = -EINVAL; in netlbl_mgmt_add_common()
176 ret_val = -ENOMEM; in netlbl_mgmt_add_common()
187 ret_val = netlbl_af4list_add(&map->list, &addrmap->list4); in netlbl_mgmt_add_common()
188 if (ret_val != 0) in netlbl_mgmt_add_common()
202 ret_val = -ENOMEM; in netlbl_mgmt_add_common()
210 ret_val = -EINVAL; in netlbl_mgmt_add_common()
215 ret_val = -EINVAL; in netlbl_mgmt_add_common()
223 ret_val = -ENOMEM; in netlbl_mgmt_add_common()
238 ret_val = netlbl_af6list_add(&map->list, &addrmap->list6); in netlbl_mgmt_add_common()
239 if (ret_val != 0) in netlbl_mgmt_add_common()
248 ret_val = netlbl_domhsh_add(entry, audit_info); in netlbl_mgmt_add_common()
249 if (ret_val != 0) in netlbl_mgmt_add_common()
267 return ret_val; in netlbl_mgmt_add_common()
284 int ret_val = 0; in netlbl_mgmt_listentry() local
293 ret_val = nla_put_string(skb, in netlbl_mgmt_listentry()
295 if (ret_val != 0) in netlbl_mgmt_listentry()
296 return ret_val; in netlbl_mgmt_listentry()
299 ret_val = nla_put_u16(skb, NLBL_MGMT_A_FAMILY, entry->family); in netlbl_mgmt_listentry()
300 if (ret_val != 0) in netlbl_mgmt_listentry()
301 return ret_val; in netlbl_mgmt_listentry()
319 ret_val = nla_put_in_addr(skb, NLBL_MGMT_A_IPV4ADDR, in netlbl_mgmt_listentry()
321 if (ret_val != 0) in netlbl_mgmt_listentry()
322 return ret_val; in netlbl_mgmt_listentry()
324 ret_val = nla_put_in_addr(skb, NLBL_MGMT_A_IPV4MASK, in netlbl_mgmt_listentry()
326 if (ret_val != 0) in netlbl_mgmt_listentry()
327 return ret_val; in netlbl_mgmt_listentry()
329 ret_val = nla_put_u32(skb, NLBL_MGMT_A_PROTOCOL, in netlbl_mgmt_listentry()
331 if (ret_val != 0) in netlbl_mgmt_listentry()
332 return ret_val; in netlbl_mgmt_listentry()
335 ret_val = nla_put_u32(skb, NLBL_MGMT_A_CV4DOI, in netlbl_mgmt_listentry()
337 if (ret_val != 0) in netlbl_mgmt_listentry()
338 return ret_val; in netlbl_mgmt_listentry()
353 ret_val = nla_put_in6_addr(skb, NLBL_MGMT_A_IPV6ADDR, in netlbl_mgmt_listentry()
355 if (ret_val != 0) in netlbl_mgmt_listentry()
356 return ret_val; in netlbl_mgmt_listentry()
357 ret_val = nla_put_in6_addr(skb, NLBL_MGMT_A_IPV6MASK, in netlbl_mgmt_listentry()
359 if (ret_val != 0) in netlbl_mgmt_listentry()
360 return ret_val; in netlbl_mgmt_listentry()
362 ret_val = nla_put_u32(skb, NLBL_MGMT_A_PROTOCOL, in netlbl_mgmt_listentry()
364 if (ret_val != 0) in netlbl_mgmt_listentry()
365 return ret_val; in netlbl_mgmt_listentry()
369 ret_val = nla_put_u32(skb, NLBL_MGMT_A_CLPDOI, in netlbl_mgmt_listentry()
371 if (ret_val != 0) in netlbl_mgmt_listentry()
372 return ret_val; in netlbl_mgmt_listentry()
383 ret_val = nla_put_u32(skb, NLBL_MGMT_A_PROTOCOL, in netlbl_mgmt_listentry()
387 ret_val = nla_put_u32(skb, NLBL_MGMT_A_PROTOCOL, in netlbl_mgmt_listentry()
389 if (ret_val != 0) in netlbl_mgmt_listentry()
390 return ret_val; in netlbl_mgmt_listentry()
391 ret_val = nla_put_u32(skb, NLBL_MGMT_A_CV4DOI, in netlbl_mgmt_listentry()
395 ret_val = nla_put_u32(skb, NLBL_MGMT_A_PROTOCOL, in netlbl_mgmt_listentry()
397 if (ret_val != 0) in netlbl_mgmt_listentry()
398 return ret_val; in netlbl_mgmt_listentry()
399 ret_val = nla_put_u32(skb, NLBL_MGMT_A_CLPDOI, in netlbl_mgmt_listentry()
404 return ret_val; in netlbl_mgmt_listentry()
481 int ret_val = -ENOMEM; in netlbl_mgmt_listall_cb() local
491 ret_val = netlbl_mgmt_listentry(cb_arg->skb, entry); in netlbl_mgmt_listall_cb()
492 if (ret_val != 0) in netlbl_mgmt_listall_cb()
501 return ret_val; in netlbl_mgmt_listall_cb()
598 int ret_val = -ENOMEM; in netlbl_mgmt_listdef() local
620 ret_val = -ENOENT; in netlbl_mgmt_listdef()
623 ret_val = netlbl_mgmt_listentry(ans_skb, entry); in netlbl_mgmt_listdef()
625 if (ret_val != 0) in netlbl_mgmt_listdef()
635 return ret_val; in netlbl_mgmt_listdef()
654 int ret_val = -ENOMEM; in netlbl_mgmt_protocols_cb() local
663 ret_val = nla_put_u32(skb, NLBL_MGMT_A_PROTOCOL, protocol); in netlbl_mgmt_protocols_cb()
664 if (ret_val != 0) in netlbl_mgmt_protocols_cb()
672 return ret_val; in netlbl_mgmt_protocols_cb()
730 int ret_val = -ENOMEM; in netlbl_mgmt_version() local
742 ret_val = nla_put_u32(ans_skb, in netlbl_mgmt_version()
745 if (ret_val != 0) in netlbl_mgmt_version()
753 return ret_val; in netlbl_mgmt_version()