Home
last modified time | relevance | path

Searched refs:hdroff (Results 1 – 12 of 12) sorted by relevance

/Linux-v4.19/net/netfilter/
Dnf_nat_proto_sctp.c31 unsigned int iphdroff, unsigned int hdroff, in sctp_manip_pkt() argument
42 if (skb->len >= hdroff + sizeof(*hdr)) in sctp_manip_pkt()
45 if (!skb_make_writable(skb, hdroff + hdrsize)) in sctp_manip_pkt()
48 hdr = (struct sctphdr *)(skb->data + hdroff); in sctp_manip_pkt()
62 hdr->checksum = sctp_compute_cksum(skb, hdroff); in sctp_manip_pkt()
Dnf_nat_proto_udp.c64 unsigned int iphdroff, unsigned int hdroff, in udp_manip_pkt() argument
71 if (!skb_make_writable(skb, hdroff + sizeof(*hdr))) in udp_manip_pkt()
74 hdr = (struct udphdr *)(skb->data + hdroff); in udp_manip_pkt()
86 unsigned int iphdroff, unsigned int hdroff, in udplite_manip_pkt() argument
92 if (!skb_make_writable(skb, hdroff + sizeof(*hdr))) in udplite_manip_pkt()
95 hdr = (struct udphdr *)(skb->data + hdroff); in udplite_manip_pkt()
Dnf_nat_proto_dccp.c37 unsigned int iphdroff, unsigned int hdroff, in dccp_manip_pkt() argument
45 if (skb->len >= hdroff + sizeof(struct dccp_hdr)) in dccp_manip_pkt()
48 if (!skb_make_writable(skb, hdroff + hdrsize)) in dccp_manip_pkt()
51 hdr = (struct dccp_hdr *)(skb->data + hdroff); in dccp_manip_pkt()
Dnf_nat_proto_tcp.c37 unsigned int iphdroff, unsigned int hdroff, in tcp_manip_pkt() argument
48 if (skb->len >= hdroff + sizeof(struct tcphdr)) in tcp_manip_pkt()
51 if (!skb_make_writable(skb, hdroff + hdrsize)) in tcp_manip_pkt()
54 hdr = (struct tcphdr *)(skb->data + hdroff); in tcp_manip_pkt()
Dnf_nat_proto_unknown.c43 unsigned int iphdroff, unsigned int hdroff, in unknown_manip_pkt() argument
/Linux-v4.19/net/ipv4/netfilter/
Dnf_nat_proto_icmp.c59 unsigned int iphdroff, unsigned int hdroff, in icmp_manip_pkt() argument
65 if (!skb_make_writable(skb, hdroff + sizeof(*hdr))) in icmp_manip_pkt()
68 hdr = (struct icmphdr *)(skb->data + hdroff); in icmp_manip_pkt()
Dnf_nat_proto_gre.c87 unsigned int iphdroff, unsigned int hdroff, in gre_manip_pkt() argument
96 if (!skb_make_writable(skb, hdroff + sizeof(*pgreh) - 8)) in gre_manip_pkt()
99 greh = (void *)skb->data + hdroff; in gre_manip_pkt()
Dnf_nat_l3proto_ipv4.c85 unsigned int hdroff; in nf_nat_ipv4_manip_pkt() local
91 hdroff = iphdroff + iph->ihl * 4; in nf_nat_ipv4_manip_pkt()
93 if (!l4proto->manip_pkt(skb, &nf_nat_l3proto_ipv4, iphdroff, hdroff, in nf_nat_ipv4_manip_pkt()
/Linux-v4.19/net/ipv6/netfilter/
Dnf_nat_proto_icmpv6.c60 unsigned int iphdroff, unsigned int hdroff, in icmpv6_manip_pkt() argument
66 if (!skb_make_writable(skb, hdroff + sizeof(*hdr))) in icmpv6_manip_pkt()
69 hdr = (struct icmp6hdr *)(skb->data + hdroff); in icmpv6_manip_pkt()
Dnf_nat_l3proto_ipv6.c85 int hdroff; in nf_nat_ipv6_manip_pkt() local
93 hdroff = ipv6_skip_exthdr(skb, iphdroff + sizeof(*ipv6h), in nf_nat_ipv6_manip_pkt()
95 if (hdroff < 0) in nf_nat_ipv6_manip_pkt()
99 !l4proto->manip_pkt(skb, &nf_nat_l3proto_ipv6, iphdroff, hdroff, in nf_nat_ipv6_manip_pkt()
/Linux-v4.19/include/net/netfilter/
Dnf_nat_l4proto.h20 unsigned int iphdroff, unsigned int hdroff,
/Linux-v4.19/net/core/
Dfilter.c4662 int hdroff = 0; in BPF_CALL_4() local
4684 if (ipv6_find_hdr(skb, &hdroff, IPPROTO_IPV6, NULL, NULL) < 0) in BPF_CALL_4()
4686 if (!pskb_pull(skb, hdroff)) in BPF_CALL_4()
4689 skb_postpull_rcsum(skb, skb_network_header(skb), hdroff); in BPF_CALL_4()