Home | History | Annotate | Download | only in src

Lines Matching refs:nodecon

4012 	struct cil_nodecon *nodecon = NULL;
4023 cil_nodecon_init(&nodecon);
4026 nodecon->addr_str = parse_current->next->data;
4028 cil_ipaddr_init(&nodecon->addr);
4030 rc = cil_fill_ipaddr(parse_current->next->cl_head, nodecon->addr);
4037 nodecon->mask_str = parse_current->next->next->data;
4039 cil_ipaddr_init(&nodecon->mask);
4041 rc = cil_fill_ipaddr(parse_current->next->next->cl_head, nodecon->mask);
4048 nodecon->context_str = parse_current->next->next->next->data;
4050 cil_context_init(&nodecon->context);
4052 rc = cil_fill_context(parse_current->next->next->next->cl_head, nodecon->context);
4058 ast_node->data = nodecon;
4064 cil_log(CIL_ERR, "Bad nodecon declaration at line %d of %s\n",
4066 cil_destroy_nodecon(nodecon);
4070 void cil_destroy_nodecon(struct cil_nodecon *nodecon)
4072 if (nodecon == NULL) {
4076 if (nodecon->addr_str == NULL && nodecon->addr != NULL) {
4077 cil_destroy_ipaddr(nodecon->addr);
4080 if (nodecon->mask_str == NULL && nodecon->mask != NULL) {
4081 cil_destroy_ipaddr(nodecon->mask);
4084 if (nodecon->context_str == NULL && nodecon->context != NULL) {
4085 cil_destroy_context(nodecon->context);
4088 free(nodecon);