Home
last modified time | relevance | path

Searched refs:len_delta (Results 1 – 2 of 2) sorted by relevance

/kernel/linux/linux-5.10/net/ipv6/
Dcalipso.c1302 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 …]
/kernel/linux/linux-5.10/net/ipv4/
Dcipso_ipv4.c2174 int len_delta; in cipso_v4_skbuff_setattr() local
2188 len_delta = opt_len - opt->optlen; in cipso_v4_skbuff_setattr()
2192 ret_val = skb_cow(skb, skb_headroom(skb) + len_delta); in cipso_v4_skbuff_setattr()
2196 if (len_delta > 0) { in cipso_v4_skbuff_setattr()
2200 skb_push(skb, len_delta); in cipso_v4_skbuff_setattr()
2201 memmove((char *)iph - len_delta, iph, iph->ihl << 2); in cipso_v4_skbuff_setattr()
2204 } else if (len_delta < 0) { in cipso_v4_skbuff_setattr()
2224 if (len_delta != 0) { in cipso_v4_skbuff_setattr()