Lines Matching refs:cipso
471 kfree(doi_def->map.std->lvl.cipso); in cipso_v4_doi_free()
473 kfree(doi_def->map.std->cat.cipso); in cipso_v4_doi_free()
649 (doi_def->map.std->lvl.cipso[level] < CIPSO_V4_INV_LVL)) in cipso_v4_map_lvl_valid()
714 map_tbl->lvl.cipso[net_lvl] < CIPSO_V4_INV_LVL) { in cipso_v4_map_lvl_ntoh()
715 *host_lvl = doi_def->map.std->lvl.cipso[net_lvl]; in cipso_v4_map_lvl_ntoh()
750 cipso_array = doi_def->map.std->cat.cipso; in cipso_v4_map_cat_rbm_valid()
859 net_cat_array = doi_def->map.std->cat.cipso; in cipso_v4_map_cat_rbm_ntoh()
1876 opt->opt.cipso = sizeof(struct iphdr); in cipso_v4_sock_setattr()
1953 opt->opt.cipso = sizeof(struct iphdr); in cipso_v4_req_setattr()
1985 if (!opt || opt->opt.cipso == 0) in cipso_v4_delopt()
1994 cipso_off = opt->opt.cipso - sizeof(struct iphdr); in cipso_v4_delopt()
1998 if (opt->opt.srr > opt->opt.cipso) in cipso_v4_delopt()
2000 if (opt->opt.rr > opt->opt.cipso) in cipso_v4_delopt()
2002 if (opt->opt.ts > opt->opt.cipso) in cipso_v4_delopt()
2004 if (opt->opt.router_alert > opt->opt.cipso) in cipso_v4_delopt()
2006 opt->opt.cipso = 0; in cipso_v4_delopt()
2084 int cipso_v4_getattr(const unsigned char *cipso, in cipso_v4_getattr() argument
2091 if (cipso_v4_cache_check(cipso, cipso[1], secattr) == 0) in cipso_v4_getattr()
2094 doi = get_unaligned_be32(&cipso[2]); in cipso_v4_getattr()
2102 switch (cipso[6]) { in cipso_v4_getattr()
2104 ret_val = cipso_v4_parsetag_rbm(doi_def, &cipso[6], secattr); in cipso_v4_getattr()
2107 ret_val = cipso_v4_parsetag_enum(doi_def, &cipso[6], secattr); in cipso_v4_getattr()
2110 ret_val = cipso_v4_parsetag_rng(doi_def, &cipso[6], secattr); in cipso_v4_getattr()
2113 ret_val = cipso_v4_parsetag_loc(doi_def, &cipso[6], secattr); in cipso_v4_getattr()
2143 if (opt && opt->opt.cipso) in cipso_v4_sock_getattr()
2145 opt->opt.cipso - in cipso_v4_sock_getattr()
2212 opt->cipso = sizeof(struct iphdr); in cipso_v4_skbuff_setattr()
2248 if (opt->cipso == 0) in cipso_v4_skbuff_delattr()
2261 cipso_ptr = (unsigned char *)iph + opt->cipso; in cipso_v4_skbuff_delattr()
2263 opt->cipso = 0; in cipso_v4_skbuff_delattr()