Home
last modified time | relevance | path

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

/linux/net/ipv6/
H A Dcalipso.c1299 int len_delta, new_end, pad, payload; in calipso_skbuff_setattr() local
1321 len_delta = new_end - (int)end + pad; in calipso_skbuff_setattr()
1322 ret_val = skb_cow(skb, skb_headroom(skb) + len_delta); in calipso_skbuff_setattr()
1328 if (len_delta) { in calipso_skbuff_setattr()
1329 if (len_delta > 0) in calipso_skbuff_setattr()
1330 skb_push(skb, len_delta); in calipso_skbuff_setattr()
1332 skb_pull(skb, -len_delta); in calipso_skbuff_setattr()
1333 memmove((char *)ip6_hdr - len_delta, ip6_hdr, in calipso_skbuff_setattr()
1338 ip6_hdr->payload_len = htons(payload + len_delta); in calipso_skbuff_setattr()
1346 new_hop->hdrlen = len_delta / 8 - 1; in calipso_skbuff_setattr()
[all …]
/linux/net/ipv4/
H A Dcipso_ipv4.c2182 int len_delta; in cipso_v4_skbuff_setattr() local
2196 len_delta = opt_len - opt->optlen; in cipso_v4_skbuff_setattr()
2200 ret_val = skb_cow(skb, skb_headroom(skb) + len_delta); in cipso_v4_skbuff_setattr()
2204 if (len_delta > 0) { in cipso_v4_skbuff_setattr()
2208 skb_push(skb, len_delta); in cipso_v4_skbuff_setattr()
2209 memmove((char *)iph - len_delta, iph, iph->ihl << 2); in cipso_v4_skbuff_setattr()
2212 } else if (len_delta < 0) { in cipso_v4_skbuff_setattr()
2232 if (len_delta != 0) { in cipso_v4_skbuff_setattr()