Lines Matching defs:calipso
29 #include <net/calipso.h>
35 /* Maximium size of the calipso option including
40 /* Size of the minimum calipso option including
45 /* Maximium size of the calipso option including
51 /* Maximium size of u32 aligned buffer required to hold calipso
344 * requirements of the mapping type (see calipso.h for details). Returns
731 unsigned char *calipso;
754 calipso = buf + start + pad;
756 calipso[0] = IPV6_TLV_CALIPSO;
757 calipso[1] = len - 2;
758 *(__be32 *)(calipso + 2) = htonl(doi_def->doi);
759 calipso[6] = (len - CALIPSO_HDR_LEN) / 4;
760 calipso[7] = secattr->attr.mls.lvl;
761 crc = ~crc_ccitt(0xffff, calipso, len);
762 calipso[8] = crc & 0xff;
763 calipso[9] = (crc >> 8) & 0xff;
1006 * @calipso: the CALIPSO option
1010 * Inspect @calipso and return the security attributes in @secattr.
1014 static int calipso_opt_getattr(const unsigned char *calipso,
1018 u32 doi, len = calipso[1], cat_len = calipso[6] * 4;
1024 if (calipso_cache_check(calipso + 2, calipso[1], secattr) == 0)
1027 doi = get_unaligned_be32(calipso + 2);
1033 secattr->attr.mls.lvl = calipso[7];
1038 calipso + 10,