Lines Matching refs:netifcon
4498 struct cil_netifcon *netifcon = NULL; in cil_gen_netifcon() local
4509 cil_netifcon_init(&netifcon); in cil_gen_netifcon()
4511 netifcon->interface_str = parse_current->next->data; in cil_gen_netifcon()
4514 netifcon->if_context_str = parse_current->next->next->data; in cil_gen_netifcon()
4516 cil_context_init(&netifcon->if_context); in cil_gen_netifcon()
4518 rc = cil_fill_context(parse_current->next->next->cl_head, netifcon->if_context); in cil_gen_netifcon()
4525 netifcon->packet_context_str = parse_current->next->next->next->data; in cil_gen_netifcon()
4527 cil_context_init(&netifcon->packet_context); in cil_gen_netifcon()
4529 rc = cil_fill_context(parse_current->next->next->next->cl_head, netifcon->packet_context); in cil_gen_netifcon()
4535 ast_node->data = netifcon; in cil_gen_netifcon()
4543 cil_destroy_netifcon(netifcon); in cil_gen_netifcon()
4547 void cil_destroy_netifcon(struct cil_netifcon *netifcon) in cil_destroy_netifcon() argument
4549 if (netifcon == NULL) { in cil_destroy_netifcon()
4553 if (netifcon->if_context_str == NULL && netifcon->if_context != NULL) { in cil_destroy_netifcon()
4554 cil_destroy_context(netifcon->if_context); in cil_destroy_netifcon()
4557 if (netifcon->packet_context_str == NULL && netifcon->packet_context != NULL) { in cil_destroy_netifcon()
4558 cil_destroy_context(netifcon->packet_context); in cil_destroy_netifcon()
4561 free(netifcon); in cil_destroy_netifcon()