Searched refs:aportcon (Results 1 – 2 of 2) sorted by relevance
207 struct cil_portcon *aportcon; in test_cil_post_portcon_compare_atotal_greater_btotal() local208 cil_portcon_init(&aportcon); in test_cil_post_portcon_compare_atotal_greater_btotal()213 aportcon->port_low = 15; in test_cil_post_portcon_compare_atotal_greater_btotal()214 aportcon->port_high = 30; in test_cil_post_portcon_compare_atotal_greater_btotal()219 int rc = cil_post_portcon_compare(&aportcon, &bportcon); in test_cil_post_portcon_compare_atotal_greater_btotal()224 struct cil_portcon *aportcon; in test_cil_post_portcon_compare_btotal_greater_atotal() local225 cil_portcon_init(&aportcon); in test_cil_post_portcon_compare_btotal_greater_atotal()230 aportcon->port_low = 5; in test_cil_post_portcon_compare_btotal_greater_atotal()231 aportcon->port_high = 5; in test_cil_post_portcon_compare_btotal_greater_atotal()236 int rc = cil_post_portcon_compare(&aportcon, &bportcon); in test_cil_post_portcon_compare_btotal_greater_atotal()[all …]
262 struct cil_portcon *aportcon = *(struct cil_portcon**)a; in cil_post_portcon_compare() local265 rc = (aportcon->port_high - aportcon->port_low) in cil_post_portcon_compare()268 if (aportcon->port_low < bportcon->port_low) { in cil_post_portcon_compare()270 } else if (bportcon->port_low < aportcon->port_low) { in cil_post_portcon_compare()272 } else if (aportcon->proto < bportcon->proto) { in cil_post_portcon_compare()274 } else if (aportcon->proto > bportcon->proto) { in cil_post_portcon_compare()