Lines Matching refs:ibpkeycon
4304 struct cil_ibpkeycon *ibpkeycon = NULL; in cil_gen_ibpkeycon() local
4313 cil_ibpkeycon_init(&ibpkeycon); in cil_gen_ibpkeycon()
4315 ibpkeycon->subnet_prefix_str = parse_current->next->data; in cil_gen_ibpkeycon()
4320 rc = cil_fill_integer(parse_current->next->next->cl_head, &ibpkeycon->pkey_low, 0); in cil_gen_ibpkeycon()
4325 rc = cil_fill_integer(parse_current->next->next->cl_head->next, &ibpkeycon->pkey_high, 0); in cil_gen_ibpkeycon()
4336 rc = cil_fill_integer(parse_current->next->next, &ibpkeycon->pkey_low, 0); in cil_gen_ibpkeycon()
4341 ibpkeycon->pkey_high = ibpkeycon->pkey_low; in cil_gen_ibpkeycon()
4345 ibpkeycon->context_str = parse_current->next->next->next->data; in cil_gen_ibpkeycon()
4347 cil_context_init(&ibpkeycon->context); in cil_gen_ibpkeycon()
4349 rc = cil_fill_context(parse_current->next->next->next->cl_head, ibpkeycon->context); in cil_gen_ibpkeycon()
4354 ast_node->data = ibpkeycon; in cil_gen_ibpkeycon()
4360 cil_destroy_ibpkeycon(ibpkeycon); in cil_gen_ibpkeycon()
4365 void cil_destroy_ibpkeycon(struct cil_ibpkeycon *ibpkeycon) in cil_destroy_ibpkeycon() argument
4367 if (!ibpkeycon) in cil_destroy_ibpkeycon()
4370 if (!ibpkeycon->context_str && ibpkeycon->context) in cil_destroy_ibpkeycon()
4371 cil_destroy_context(ibpkeycon->context); in cil_destroy_ibpkeycon()
4373 free(ibpkeycon); in cil_destroy_ibpkeycon()