Searched refs:bportcon (Results 1 – 2 of 2) sorted by relevance
210 struct cil_portcon *bportcon; in test_cil_post_portcon_compare_atotal_greater_btotal() local211 cil_portcon_init(&bportcon); in test_cil_post_portcon_compare_atotal_greater_btotal()216 bportcon->port_low = 10; in test_cil_post_portcon_compare_atotal_greater_btotal()217 bportcon->port_high = 11; 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()227 struct cil_portcon *bportcon; in test_cil_post_portcon_compare_btotal_greater_atotal() local228 cil_portcon_init(&bportcon); in test_cil_post_portcon_compare_btotal_greater_atotal()233 bportcon->port_low = 11; in test_cil_post_portcon_compare_btotal_greater_atotal()234 bportcon->port_high = 20; 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 …]
263 struct cil_portcon *bportcon = *(struct cil_portcon**)b; in cil_post_portcon_compare() local266 - (bportcon->port_high - bportcon->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()