Lines Matching refs:ipl
125 unsigned int ihl, unsigned int ipl, in tcf_csum_skb_nextlayer() argument
131 if (!pskb_may_pull(skb, ipl + ntkoff) || (ipl < hl) || in tcf_csum_skb_nextlayer()
139 unsigned int ipl) in tcf_csum_ipv4_icmp() argument
143 icmph = tcf_csum_skb_nextlayer(skb, ihl, ipl, sizeof(*icmph)); in tcf_csum_ipv4_icmp()
148 skb->csum = csum_partial(icmph, ipl - ihl, 0); in tcf_csum_ipv4_icmp()
157 unsigned int ihl, unsigned int ipl) in tcf_csum_ipv4_igmp() argument
161 igmph = tcf_csum_skb_nextlayer(skb, ihl, ipl, sizeof(*igmph)); in tcf_csum_ipv4_igmp()
166 skb->csum = csum_partial(igmph, ipl - ihl, 0); in tcf_csum_ipv4_igmp()
175 unsigned int ipl) in tcf_csum_ipv6_icmp() argument
180 icmp6h = tcf_csum_skb_nextlayer(skb, ihl, ipl, sizeof(*icmp6h)); in tcf_csum_ipv6_icmp()
186 skb->csum = csum_partial(icmp6h, ipl - ihl, 0); in tcf_csum_ipv6_icmp()
188 ipl - ihl, IPPROTO_ICMPV6, in tcf_csum_ipv6_icmp()
197 unsigned int ipl) in tcf_csum_ipv4_tcp() argument
205 tcph = tcf_csum_skb_nextlayer(skb, ihl, ipl, sizeof(*tcph)); in tcf_csum_ipv4_tcp()
211 skb->csum = csum_partial(tcph, ipl - ihl, 0); in tcf_csum_ipv4_tcp()
212 tcph->check = tcp_v4_check(ipl - ihl, in tcf_csum_ipv4_tcp()
221 unsigned int ipl) in tcf_csum_ipv6_tcp() argument
229 tcph = tcf_csum_skb_nextlayer(skb, ihl, ipl, sizeof(*tcph)); in tcf_csum_ipv6_tcp()
235 skb->csum = csum_partial(tcph, ipl - ihl, 0); in tcf_csum_ipv6_tcp()
237 ipl - ihl, IPPROTO_TCP, in tcf_csum_ipv6_tcp()
246 unsigned int ipl, int udplite) in tcf_csum_ipv4_udp() argument
262 udph = tcf_csum_skb_nextlayer(skb, ihl, ipl, sizeof(*udph)); in tcf_csum_ipv4_udp()
275 skb->csum = csum_partial(udph, ipl - ihl, 0); in tcf_csum_ipv4_udp()
276 else if ((ul >= sizeof(*udph)) && (ul <= ipl - ihl)) in tcf_csum_ipv4_udp()
281 if (ul != ipl - ihl) in tcf_csum_ipv4_udp()
302 unsigned int ipl, int udplite) in tcf_csum_ipv6_udp() argument
318 udph = tcf_csum_skb_nextlayer(skb, ihl, ipl, sizeof(*udph)); in tcf_csum_ipv6_udp()
329 skb->csum = csum_partial(udph, ipl - ihl, 0); in tcf_csum_ipv6_udp()
331 else if ((ul >= sizeof(*udph)) && (ul <= ipl - ihl)) in tcf_csum_ipv6_udp()
337 if (ul != ipl - ihl) in tcf_csum_ipv6_udp()
357 unsigned int ipl) in tcf_csum_sctp() argument
364 sctph = tcf_csum_skb_nextlayer(skb, ihl, ipl, sizeof(*sctph)); in tcf_csum_sctp()