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