Lines Matching refs:portcon
4388 struct cil_portcon *portcon = NULL; in cil_gen_portcon() local
4400 cil_portcon_init(&portcon); in cil_gen_portcon()
4404 portcon->proto = CIL_PROTOCOL_UDP; in cil_gen_portcon()
4406 portcon->proto = CIL_PROTOCOL_TCP; in cil_gen_portcon()
4408 portcon->proto = CIL_PROTOCOL_DCCP; in cil_gen_portcon()
4410 portcon->proto = CIL_PROTOCOL_SCTP; in cil_gen_portcon()
4420 rc = cil_fill_integer(parse_current->next->next->cl_head, &portcon->port_low, 10); in cil_gen_portcon()
4425 rc = cil_fill_integer(parse_current->next->next->cl_head->next, &portcon->port_high, 10); in cil_gen_portcon()
4436 rc = cil_fill_integer(parse_current->next->next, &portcon->port_low, 10); in cil_gen_portcon()
4441 portcon->port_high = portcon->port_low; in cil_gen_portcon()
4445 portcon->context_str = parse_current->next->next->next->data; in cil_gen_portcon()
4447 cil_context_init(&portcon->context); in cil_gen_portcon()
4449 rc = cil_fill_context(parse_current->next->next->next->cl_head, portcon->context); in cil_gen_portcon()
4455 ast_node->data = portcon; in cil_gen_portcon()
4462 cil_destroy_portcon(portcon); in cil_gen_portcon()
4466 void cil_destroy_portcon(struct cil_portcon *portcon) in cil_destroy_portcon() argument
4468 if (portcon == NULL) { in cil_destroy_portcon()
4472 if (portcon->context_str == NULL && portcon->context != NULL) { in cil_destroy_portcon()
4473 cil_destroy_context(portcon->context); in cil_destroy_portcon()
4476 free(portcon); in cil_destroy_portcon()