Home
last modified time | relevance | path

Searched refs:bportcon (Results 1 - 2 of 2) sorted by relevance

/third_party/selinux/libsepol/cil/test/unit/
H A Dtest_cil_post.c210 struct cil_portcon *bportcon; in test_cil_post_portcon_compare_atotal_greater_btotal() local
211 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() local
228 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()
244 struct cil_portcon *bportcon; test_cil_post_portcon_compare_aportlow_greater_bportlow() local
261 struct cil_portcon *bportcon; test_cil_post_portcon_compare_bportlow_greater_aportlow() local
278 struct cil_portcon *bportcon; test_cil_post_portcon_compare_equal() local
[all...]
/third_party/selinux/libsepol/cil/src/
H A Dcil_post.c277 struct cil_portcon *bportcon = *(struct cil_portcon**)b; in cil_post_portcon_compare() local
280 - (bportcon->port_high - bportcon->port_low); in cil_post_portcon_compare()
282 if (aportcon->port_low < bportcon->port_low) { in cil_post_portcon_compare()
284 } else if (bportcon->port_low < aportcon->port_low) { in cil_post_portcon_compare()
286 } else if (aportcon->proto < bportcon->proto) { in cil_post_portcon_compare()
288 } else if (aportcon->proto > bportcon->proto) { in cil_post_portcon_compare()

Completed in 7 milliseconds