Home
last modified time | relevance | path

Searched refs:csum_offset (Results 1 – 20 of 20) sorted by relevance

/net/netfilter/
Dnft_payload.c175 int offset, csum_offset; in nft_payload_set_eval() local
197 csum_offset = offset + priv->csum_offset; in nft_payload_set_eval()
203 if (skb_copy_bits(skb, csum_offset, &sum, sizeof(sum)) < 0) in nft_payload_set_eval()
213 if (!skb_make_writable(skb, csum_offset + sizeof(sum)) || in nft_payload_set_eval()
214 skb_store_bits(skb, csum_offset, &sum, sizeof(sum)) < 0) in nft_payload_set_eval()
242 priv->csum_offset = in nft_payload_set_init()
266 htonl(priv->csum_offset))) in nft_payload_set_dump()
/net/ipv6/
Dip6_checksum.c116 skb->csum_offset = offsetof(struct udphdr, check); in udp6_set_csum()
Dudp.c908 skb->csum_offset = offsetof(struct udphdr, check); in udp6_hwcsum_outgoing()
/net/ipv4/netfilter/
Dnf_reject_ipv4.c99 nskb->csum_offset = offsetof(struct tcphdr, check); in nf_reject_ip_tcphdr_put()
Dnf_nat_l3proto_ipv4.c136 skb->csum_offset = (void *)check - data; in nf_nat_ipv4_csum_recalc()
Dipt_SYNPROXY.c52 nskb->csum_offset = offsetof(struct tcphdr, check); in synproxy_send_tcp()
/net/ipv4/
Dtcp_offload.c287 skb->csum_offset = offsetof(struct tcphdr, check); in tcp_gro_complete()
Dudp_offload.c146 skb->csum_offset = offsetof(struct udphdr, check); in __skb_udp_tunnel_segment()
Dfou.c967 pd[1] = htons(csum_start + skb->csum_offset); in __gue_build_header()
Dudp.c738 skb->csum_offset = offsetof(struct udphdr, check); in udp4_hwcsum()
784 skb->csum_offset = offsetof(struct udphdr, check); in udp_set_csum()
Dtcp_ipv4.c558 skb->csum_offset = offsetof(struct tcphdr, check); in __tcp_v4_send_check()
/net/ipv6/netfilter/
Dnf_nat_l3proto_ipv6.c144 skb->csum_offset = (void *)check - data; in nf_nat_ipv6_csum_recalc()
Dip6t_SYNPROXY.c53 nskb->csum_offset = offsetof(struct tcphdr, check); in synproxy_send_tcp()
/net/sctp/
Doutput.c662 head->csum_offset = offsetof(struct sctphdr, checksum); in sctp_packet_transmit()
/net/packet/
Daf_packet.c2424 __virtio16_to_cpu(vio_le(), vnet_hdr->csum_offset) + 2 > in __packet_snd_vnet_parse()
2428 __virtio16_to_cpu(vio_le(), vnet_hdr->csum_offset) + 2); in __packet_snd_vnet_parse()
2480 u16 o = __virtio16_to_cpu(vio_le(), vnet_hdr->csum_offset); in packet_snd_vnet_gso()
/net/core/
Ddev.c2506 offset += skb->csum_offset; in skb_checksum_help()
2618 skb->csum_offset != offsetof(struct tcphdr, check)) in __skb_csum_offload_chk()
2623 skb->csum_offset != offsetof(struct udphdr, check)) in __skb_csum_offload_chk()
2628 skb->csum_offset != offsetof(struct sctphdr, checksum)) in __skb_csum_offload_chk()
Dskbuff.c2359 long csstuff = csstart + skb->csum_offset; in skb_copy_and_csum_dev()
3955 skb->csum_offset = off; in skb_partial_csum_set()
Dfilter.c2129 skb->csum_offset + sizeof(__sum16); in __bpf_skb_min_len()
Dpktgen.c3050 skb->csum_offset = offsetof(struct udphdr, check); in fill_packet_ipv6()
/net/netfilter/ipvs/
Dip_vs_core.c826 skb->csum_offset = offsetof(struct icmp6hdr, icmp6_cksum); in ip_vs_nat_icmp_v6()