Lines Matching refs:calipso
731 unsigned char *calipso; in calipso_genopt() local
754 calipso = buf + start + pad; in calipso_genopt()
756 calipso[0] = IPV6_TLV_CALIPSO; in calipso_genopt()
757 calipso[1] = len - 2; in calipso_genopt()
758 *(__be32 *)(calipso + 2) = htonl(doi_def->doi); in calipso_genopt()
759 calipso[6] = (len - CALIPSO_HDR_LEN) / 4; in calipso_genopt()
760 calipso[7] = secattr->attr.mls.lvl; in calipso_genopt()
761 crc = ~crc_ccitt(0xffff, calipso, len); in calipso_genopt()
762 calipso[8] = crc & 0xff; in calipso_genopt()
763 calipso[9] = (crc >> 8) & 0xff; in calipso_genopt()
1014 static int calipso_opt_getattr(const unsigned char *calipso, in calipso_opt_getattr() argument
1018 u32 doi, len = calipso[1], cat_len = calipso[6] * 4; in calipso_opt_getattr()
1024 if (calipso_cache_check(calipso + 2, calipso[1], secattr) == 0) in calipso_opt_getattr()
1027 doi = get_unaligned_be32(calipso + 2); in calipso_opt_getattr()
1033 secattr->attr.mls.lvl = calipso[7]; in calipso_opt_getattr()
1038 calipso + 10, in calipso_opt_getattr()