Lines Matching refs:portcon
3913 struct cil_portcon *portcon = NULL; in cil_gen_portcon() local
3925 cil_portcon_init(&portcon); in cil_gen_portcon()
3929 portcon->proto = CIL_PROTOCOL_UDP; in cil_gen_portcon()
3931 portcon->proto = CIL_PROTOCOL_TCP; in cil_gen_portcon()
3941 rc = cil_fill_integer(parse_current->next->next->cl_head, &portcon->port_low); in cil_gen_portcon()
3946 rc = cil_fill_integer(parse_current->next->next->cl_head->next, &portcon->port_high); in cil_gen_portcon()
3957 rc = cil_fill_integer(parse_current->next->next, &portcon->port_low); in cil_gen_portcon()
3962 portcon->port_high = portcon->port_low; in cil_gen_portcon()
3966 portcon->context_str = parse_current->next->next->next->data; in cil_gen_portcon()
3968 cil_context_init(&portcon->context); in cil_gen_portcon()
3970 rc = cil_fill_context(parse_current->next->next->next->cl_head, portcon->context); in cil_gen_portcon()
3976 ast_node->data = portcon; in cil_gen_portcon()
3984 cil_destroy_portcon(portcon); in cil_gen_portcon()
3988 void cil_destroy_portcon(struct cil_portcon *portcon) in cil_destroy_portcon() argument
3990 if (portcon == NULL) { in cil_destroy_portcon()
3994 if (portcon->context_str == NULL && portcon->context != NULL) { in cil_destroy_portcon()
3995 cil_destroy_context(portcon->context); in cil_destroy_portcon()
3998 free(portcon); in cil_destroy_portcon()