Home
last modified time | relevance | path

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

/linux-4.1.27/net/netfilter/
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_sctp.c33 unsigned int iphdroff, unsigned int hdroff, in sctp_manip_pkt() argument
39 if (!skb_make_writable(skb, hdroff + sizeof(*hdr))) in sctp_manip_pkt()
42 hdr = (struct sctphdr *)(skb->data + hdroff); in sctp_manip_pkt()
52 hdr->checksum = sctp_compute_cksum(skb, hdroff); in sctp_manip_pkt()
Dnf_nat_proto_dccp.c39 unsigned int iphdroff, unsigned int hdroff, in dccp_manip_pkt() argument
47 if (skb->len >= hdroff + sizeof(struct dccp_hdr)) in dccp_manip_pkt()
50 if (!skb_make_writable(skb, hdroff + hdrsize)) in dccp_manip_pkt()
53 hdr = (struct dccp_hdr *)(skb->data + hdroff); in dccp_manip_pkt()
Dnf_nat_proto_udp.c36 unsigned int iphdroff, unsigned int hdroff, in udp_manip_pkt() argument
43 if (!skb_make_writable(skb, hdroff + sizeof(*hdr))) in udp_manip_pkt()
45 hdr = (struct udphdr *)(skb->data + hdroff); in udp_manip_pkt()
Dnf_nat_proto_udplite.c36 unsigned int iphdroff, unsigned int hdroff, in udplite_manip_pkt() argument
43 if (!skb_make_writable(skb, hdroff + sizeof(*hdr))) in udplite_manip_pkt()
46 hdr = (struct udphdr *)(skb->data + hdroff); in udplite_manip_pkt()
Dnf_nat_proto_unknown.c43 unsigned int iphdroff, unsigned int hdroff, in unknown_manip_pkt() argument
/linux-4.1.27/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-4.1.27/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-4.1.27/include/net/netfilter/
Dnf_nat_l4proto.h19 unsigned int iphdroff, unsigned int hdroff,