Lines Matching refs:ihl

101 				    unsigned int ihl, unsigned int ipl,  in tcf_csum_skb_nextlayer()  argument
105 int hl = ihl + jhl; in tcf_csum_skb_nextlayer()
113 return (void *)(skb_network_header(skb) + ihl); in tcf_csum_skb_nextlayer()
117 unsigned int ihl, unsigned int ipl) in tcf_csum_ipv4_icmp() argument
121 icmph = tcf_csum_skb_nextlayer(skb, ihl, ipl, sizeof(*icmph)); in tcf_csum_ipv4_icmp()
126 skb->csum = csum_partial(icmph, ipl - ihl, 0); in tcf_csum_ipv4_icmp()
135 unsigned int ihl, unsigned int ipl) in tcf_csum_ipv4_igmp() argument
139 igmph = tcf_csum_skb_nextlayer(skb, ihl, ipl, sizeof(*igmph)); in tcf_csum_ipv4_igmp()
144 skb->csum = csum_partial(igmph, ipl - ihl, 0); in tcf_csum_ipv4_igmp()
153 unsigned int ihl, unsigned int ipl) in tcf_csum_ipv6_icmp() argument
158 icmp6h = tcf_csum_skb_nextlayer(skb, ihl, ipl, sizeof(*icmp6h)); in tcf_csum_ipv6_icmp()
164 skb->csum = csum_partial(icmp6h, ipl - ihl, 0); in tcf_csum_ipv6_icmp()
166 ipl - ihl, IPPROTO_ICMPV6, in tcf_csum_ipv6_icmp()
175 unsigned int ihl, unsigned int ipl) in tcf_csum_ipv4_tcp() argument
180 tcph = tcf_csum_skb_nextlayer(skb, ihl, ipl, sizeof(*tcph)); in tcf_csum_ipv4_tcp()
186 skb->csum = csum_partial(tcph, ipl - ihl, 0); in tcf_csum_ipv4_tcp()
187 tcph->check = tcp_v4_check(ipl - ihl, in tcf_csum_ipv4_tcp()
196 unsigned int ihl, unsigned int ipl) in tcf_csum_ipv6_tcp() argument
201 tcph = tcf_csum_skb_nextlayer(skb, ihl, ipl, sizeof(*tcph)); in tcf_csum_ipv6_tcp()
207 skb->csum = csum_partial(tcph, ipl - ihl, 0); in tcf_csum_ipv6_tcp()
209 ipl - ihl, IPPROTO_TCP, in tcf_csum_ipv6_tcp()
218 unsigned int ihl, unsigned int ipl, int udplite) in tcf_csum_ipv4_udp() argument
231 udph = tcf_csum_skb_nextlayer(skb, ihl, ipl, sizeof(*udph)); in tcf_csum_ipv4_udp()
244 skb->csum = csum_partial(udph, ipl - ihl, 0); in tcf_csum_ipv4_udp()
245 else if ((ul >= sizeof(*udph)) && (ul <= ipl - ihl)) in tcf_csum_ipv4_udp()
250 if (ul != ipl - ihl) in tcf_csum_ipv4_udp()
271 unsigned int ihl, unsigned int ipl, int udplite) in tcf_csum_ipv6_udp() argument
284 udph = tcf_csum_skb_nextlayer(skb, ihl, ipl, sizeof(*udph)); in tcf_csum_ipv6_udp()
295 skb->csum = csum_partial(udph, ipl - ihl, 0); in tcf_csum_ipv6_udp()
297 else if ((ul >= sizeof(*udph)) && (ul <= ipl - ihl)) in tcf_csum_ipv6_udp()
303 if (ul != ipl - ihl) in tcf_csum_ipv6_udp()
337 if (!tcf_csum_ipv4_icmp(skb, iph->ihl * 4, in tcf_csum_ipv4()
343 if (!tcf_csum_ipv4_igmp(skb, iph->ihl * 4, in tcf_csum_ipv4()
349 if (!tcf_csum_ipv4_tcp(skb, iph->ihl * 4, in tcf_csum_ipv4()
355 if (!tcf_csum_ipv4_udp(skb, iph->ihl * 4, in tcf_csum_ipv4()
361 if (!tcf_csum_ipv4_udp(skb, iph->ihl * 4, in tcf_csum_ipv4()