Searched refs:len_delta (Results 1 – 2 of 2) sorted by relevance
/linux-6.1.9/net/ipv6/ |
D | calipso.c | 1302 int len_delta, new_end, pad, payload; in calipso_skbuff_setattr() local 1324 len_delta = new_end - (int)end + pad; in calipso_skbuff_setattr() 1325 ret_val = skb_cow(skb, skb_headroom(skb) + len_delta); in calipso_skbuff_setattr() 1331 if (len_delta) { in calipso_skbuff_setattr() 1332 if (len_delta > 0) in calipso_skbuff_setattr() 1333 skb_push(skb, len_delta); in calipso_skbuff_setattr() 1335 skb_pull(skb, -len_delta); in calipso_skbuff_setattr() 1336 memmove((char *)ip6_hdr - len_delta, ip6_hdr, in calipso_skbuff_setattr() 1341 ip6_hdr->payload_len = htons(payload + len_delta); in calipso_skbuff_setattr() 1349 new_hop->hdrlen = len_delta / 8 - 1; in calipso_skbuff_setattr() [all …]
|
/linux-6.1.9/net/ipv4/ |
D | cipso_ipv4.c | 2173 int len_delta; in cipso_v4_skbuff_setattr() local 2187 len_delta = opt_len - opt->optlen; in cipso_v4_skbuff_setattr() 2191 ret_val = skb_cow(skb, skb_headroom(skb) + len_delta); in cipso_v4_skbuff_setattr() 2195 if (len_delta > 0) { in cipso_v4_skbuff_setattr() 2199 skb_push(skb, len_delta); in cipso_v4_skbuff_setattr() 2200 memmove((char *)iph - len_delta, iph, iph->ihl << 2); in cipso_v4_skbuff_setattr() 2203 } else if (len_delta < 0) { in cipso_v4_skbuff_setattr() 2223 if (len_delta != 0) { in cipso_v4_skbuff_setattr()
|