Lines Matching refs:nodecon
4490 struct cil_nodecon *nodecon = NULL;
4501 cil_nodecon_init(&nodecon);
4504 nodecon->addr_str = parse_current->next->data;
4506 cil_ipaddr_init(&nodecon->addr);
4508 rc = cil_fill_ipaddr(parse_current->next->cl_head, nodecon->addr);
4515 nodecon->mask_str = parse_current->next->next->data;
4517 cil_ipaddr_init(&nodecon->mask);
4519 rc = cil_fill_ipaddr(parse_current->next->next->cl_head, nodecon->mask);
4526 nodecon->context_str = parse_current->next->next->next->data;
4528 cil_context_init(&nodecon->context);
4530 rc = cil_fill_context(parse_current->next->next->next->cl_head, nodecon->context);
4536 ast_node->data = nodecon;
4542 cil_tree_log(parse_current, CIL_ERR, "Bad nodecon declaration");
4543 cil_destroy_nodecon(nodecon);
4547 void cil_destroy_nodecon(struct cil_nodecon *nodecon)
4549 if (nodecon == NULL) {
4553 if (nodecon->addr_str == NULL && nodecon->addr != NULL) {
4554 cil_destroy_ipaddr(nodecon->addr);
4557 if (nodecon->mask_str == NULL && nodecon->mask != NULL) {
4558 cil_destroy_ipaddr(nodecon->mask);
4561 if (nodecon->context_str == NULL && nodecon->context != NULL) {
4562 cil_destroy_context(nodecon->context);
4565 free(nodecon);