Lines Matching refs:hop_len
912 unsigned int start, end, buf_len, pad, hop_len; in calipso_opt_insert() local
917 hop_len = ipv6_optlen(hop); in calipso_opt_insert()
922 hop_len = 0; in calipso_opt_insert()
927 buf_len = hop_len + start - end + CALIPSO_OPT_LEN_MAX_WITH_PAD; in calipso_opt_insert()
947 if (end != hop_len) { in calipso_opt_insert()
948 memcpy((char *)new + buf_len, (char *)hop + end, hop_len - end); in calipso_opt_insert()
949 buf_len += hop_len - end; in calipso_opt_insert()
975 unsigned int start, end, delta, pad, hop_len; in calipso_opt_del() local
981 hop_len = ipv6_optlen(hop); in calipso_opt_del()
982 if (start == sizeof(*hop) && end == hop_len) { in calipso_opt_del()
989 *new = kzalloc(hop_len - delta, GFP_ATOMIC); in calipso_opt_del()
997 if (end != hop_len) in calipso_opt_del()
999 hop_len - end); in calipso_opt_del()