Lines Matching refs:attrs
91 entry->def.type = nla_get_u32(info->attrs[NLBL_MGMT_A_PROTOCOL]); in netlbl_mgmt_add_common()
92 if (info->attrs[NLBL_MGMT_A_DOMAIN]) { in netlbl_mgmt_add_common()
93 size_t tmp_size = nla_len(info->attrs[NLBL_MGMT_A_DOMAIN]); in netlbl_mgmt_add_common()
100 info->attrs[NLBL_MGMT_A_DOMAIN], tmp_size); in netlbl_mgmt_add_common()
110 if (info->attrs[NLBL_MGMT_A_FAMILY]) in netlbl_mgmt_add_common()
112 nla_get_u16(info->attrs[NLBL_MGMT_A_FAMILY]); in netlbl_mgmt_add_common()
117 if (!info->attrs[NLBL_MGMT_A_CV4DOI]) in netlbl_mgmt_add_common()
120 tmp_val = nla_get_u32(info->attrs[NLBL_MGMT_A_CV4DOI]); in netlbl_mgmt_add_common()
129 if (!info->attrs[NLBL_MGMT_A_CLPDOI]) in netlbl_mgmt_add_common()
132 tmp_val = nla_get_u32(info->attrs[NLBL_MGMT_A_CLPDOI]); in netlbl_mgmt_add_common()
144 if ((entry->family == AF_INET && info->attrs[NLBL_MGMT_A_IPV6ADDR]) || in netlbl_mgmt_add_common()
145 (entry->family == AF_INET6 && info->attrs[NLBL_MGMT_A_IPV4ADDR])) in netlbl_mgmt_add_common()
148 if (info->attrs[NLBL_MGMT_A_IPV4ADDR]) { in netlbl_mgmt_add_common()
161 if (nla_len(info->attrs[NLBL_MGMT_A_IPV4ADDR]) != in netlbl_mgmt_add_common()
166 if (nla_len(info->attrs[NLBL_MGMT_A_IPV4MASK]) != in netlbl_mgmt_add_common()
171 addr = nla_data(info->attrs[NLBL_MGMT_A_IPV4ADDR]); in netlbl_mgmt_add_common()
172 mask = nla_data(info->attrs[NLBL_MGMT_A_IPV4MASK]); in netlbl_mgmt_add_common()
195 } else if (info->attrs[NLBL_MGMT_A_IPV6ADDR]) { in netlbl_mgmt_add_common()
208 if (nla_len(info->attrs[NLBL_MGMT_A_IPV6ADDR]) != in netlbl_mgmt_add_common()
213 if (nla_len(info->attrs[NLBL_MGMT_A_IPV6MASK]) != in netlbl_mgmt_add_common()
218 addr = nla_data(info->attrs[NLBL_MGMT_A_IPV6ADDR]); in netlbl_mgmt_add_common()
219 mask = nla_data(info->attrs[NLBL_MGMT_A_IPV6MASK]); in netlbl_mgmt_add_common()
426 if ((!info->attrs[NLBL_MGMT_A_DOMAIN]) || in netlbl_mgmt_add()
427 (!info->attrs[NLBL_MGMT_A_PROTOCOL]) || in netlbl_mgmt_add()
428 (info->attrs[NLBL_MGMT_A_IPV4ADDR] && in netlbl_mgmt_add()
429 info->attrs[NLBL_MGMT_A_IPV6ADDR]) || in netlbl_mgmt_add()
430 (info->attrs[NLBL_MGMT_A_IPV4MASK] && in netlbl_mgmt_add()
431 info->attrs[NLBL_MGMT_A_IPV6MASK]) || in netlbl_mgmt_add()
432 ((info->attrs[NLBL_MGMT_A_IPV4ADDR] != NULL) ^ in netlbl_mgmt_add()
433 (info->attrs[NLBL_MGMT_A_IPV4MASK] != NULL)) || in netlbl_mgmt_add()
434 ((info->attrs[NLBL_MGMT_A_IPV6ADDR] != NULL) ^ in netlbl_mgmt_add()
435 (info->attrs[NLBL_MGMT_A_IPV6MASK] != NULL))) in netlbl_mgmt_add()
458 if (!info->attrs[NLBL_MGMT_A_DOMAIN]) in netlbl_mgmt_remove()
463 domain = nla_data(info->attrs[NLBL_MGMT_A_DOMAIN]); in netlbl_mgmt_remove()
550 if ((!info->attrs[NLBL_MGMT_A_PROTOCOL]) || in netlbl_mgmt_adddef()
551 (info->attrs[NLBL_MGMT_A_IPV4ADDR] && in netlbl_mgmt_adddef()
552 info->attrs[NLBL_MGMT_A_IPV6ADDR]) || in netlbl_mgmt_adddef()
553 (info->attrs[NLBL_MGMT_A_IPV4MASK] && in netlbl_mgmt_adddef()
554 info->attrs[NLBL_MGMT_A_IPV6MASK]) || in netlbl_mgmt_adddef()
555 ((info->attrs[NLBL_MGMT_A_IPV4ADDR] != NULL) ^ in netlbl_mgmt_adddef()
556 (info->attrs[NLBL_MGMT_A_IPV4MASK] != NULL)) || in netlbl_mgmt_adddef()
557 ((info->attrs[NLBL_MGMT_A_IPV6ADDR] != NULL) ^ in netlbl_mgmt_adddef()
558 (info->attrs[NLBL_MGMT_A_IPV6MASK] != NULL))) in netlbl_mgmt_adddef()
604 if (info->attrs[NLBL_MGMT_A_FAMILY]) in netlbl_mgmt_listdef()
605 family = nla_get_u16(info->attrs[NLBL_MGMT_A_FAMILY]); in netlbl_mgmt_listdef()