Home | History | Annotate | Download | only in src

Lines Matching defs:netifcon

4498 	struct cil_netifcon *netifcon = NULL;
4509 cil_netifcon_init(&netifcon);
4511 netifcon->interface_str = parse_current->next->data;
4514 netifcon->if_context_str = parse_current->next->next->data;
4516 cil_context_init(&netifcon->if_context);
4518 rc = cil_fill_context(parse_current->next->next->cl_head, netifcon->if_context);
4525 netifcon->packet_context_str = parse_current->next->next->next->data;
4527 cil_context_init(&netifcon->packet_context);
4529 rc = cil_fill_context(parse_current->next->next->next->cl_head, netifcon->packet_context);
4535 ast_node->data = netifcon;
4541 cil_log(CIL_ERR, "Bad netifcon declaration at line %d of %s\n",
4543 cil_destroy_netifcon(netifcon);
4547 void cil_destroy_netifcon(struct cil_netifcon *netifcon)
4549 if (netifcon == NULL) {
4553 if (netifcon->if_context_str == NULL && netifcon->if_context != NULL) {
4554 cil_destroy_context(netifcon->if_context);
4557 if (netifcon->packet_context_str == NULL && netifcon->packet_context != NULL) {
4558 cil_destroy_context(netifcon->packet_context);
4561 free(netifcon);