Lines Matching defs:level

632  * cipso_v4_map_lvl_valid - Checks to see if the given level is understood
634 * @level: the level to check
637 * Checks the given level against the given DOI definition and returns a
638 * negative value if the level does not have a valid mapping and a zero value
639 * if the level is defined by the DOI.
642 static int cipso_v4_map_lvl_valid(const struct cipso_v4_doi *doi_def, u8 level)
648 if ((level < doi_def->map.std->lvl.cipso_size) &&
649 (doi_def->map.std->lvl.cipso[level] < CIPSO_V4_INV_LVL))
658 * cipso_v4_map_lvl_hton - Perform a level mapping from the host to the network
660 * @host_lvl: the host MLS level
661 * @net_lvl: the network/CIPSO MLS level
664 * Perform a label mapping to translate a local MLS level to the correct
665 * CIPSO level using the given DOI definition. Returns zero on success,
690 * cipso_v4_map_lvl_ntoh - Perform a level mapping from the network to the host
692 * @net_lvl: the network/CIPSO MLS level
693 * @host_lvl: the host MLS level
696 * Perform a label mapping to translate a CIPSO level to the correct local MLS
697 * level using the given DOI definition. Returns zero on success, negative
1178 u32 level;
1185 &level);
1210 buffer[3] = level;
1233 u32 level;
1235 ret_val = cipso_v4_map_lvl_ntoh(doi_def, tag[3], &level);
1238 secattr->attr.mls.lvl = level;
1277 u32 level;
1284 &level);
1302 buffer[3] = level;
1325 u32 level;
1327 ret_val = cipso_v4_map_lvl_ntoh(doi_def, tag[3], &level);
1330 secattr->attr.mls.lvl = level;
1368 u32 level;
1375 &level);
1393 buffer[3] = level;
1415 u32 level;
1417 ret_val = cipso_v4_map_lvl_ntoh(doi_def, tag[3], &level);
1420 secattr->attr.mls.lvl = level;