• Home
  • Raw
  • Download

Lines Matching refs:ihl

133 				    unsigned int ihl, unsigned int ipl,  in tcf_csum_skb_nextlayer()  argument
137 int hl = ihl + jhl; in tcf_csum_skb_nextlayer()
143 return (void *)(skb_network_header(skb) + ihl); in tcf_csum_skb_nextlayer()
146 static int tcf_csum_ipv4_icmp(struct sk_buff *skb, unsigned int ihl, in tcf_csum_ipv4_icmp() argument
151 icmph = tcf_csum_skb_nextlayer(skb, ihl, ipl, sizeof(*icmph)); in tcf_csum_ipv4_icmp()
156 skb->csum = csum_partial(icmph, ipl - ihl, 0); in tcf_csum_ipv4_icmp()
165 unsigned int ihl, unsigned int ipl) in tcf_csum_ipv4_igmp() argument
169 igmph = tcf_csum_skb_nextlayer(skb, ihl, ipl, sizeof(*igmph)); in tcf_csum_ipv4_igmp()
174 skb->csum = csum_partial(igmph, ipl - ihl, 0); in tcf_csum_ipv4_igmp()
182 static int tcf_csum_ipv6_icmp(struct sk_buff *skb, unsigned int ihl, in tcf_csum_ipv6_icmp() argument
188 icmp6h = tcf_csum_skb_nextlayer(skb, ihl, ipl, sizeof(*icmp6h)); in tcf_csum_ipv6_icmp()
194 skb->csum = csum_partial(icmp6h, ipl - ihl, 0); in tcf_csum_ipv6_icmp()
196 ipl - ihl, IPPROTO_ICMPV6, in tcf_csum_ipv6_icmp()
204 static int tcf_csum_ipv4_tcp(struct sk_buff *skb, unsigned int ihl, in tcf_csum_ipv4_tcp() argument
213 tcph = tcf_csum_skb_nextlayer(skb, ihl, ipl, sizeof(*tcph)); in tcf_csum_ipv4_tcp()
219 skb->csum = csum_partial(tcph, ipl - ihl, 0); in tcf_csum_ipv4_tcp()
220 tcph->check = tcp_v4_check(ipl - ihl, in tcf_csum_ipv4_tcp()
228 static int tcf_csum_ipv6_tcp(struct sk_buff *skb, unsigned int ihl, in tcf_csum_ipv6_tcp() argument
237 tcph = tcf_csum_skb_nextlayer(skb, ihl, ipl, sizeof(*tcph)); in tcf_csum_ipv6_tcp()
243 skb->csum = csum_partial(tcph, ipl - ihl, 0); in tcf_csum_ipv6_tcp()
245 ipl - ihl, IPPROTO_TCP, in tcf_csum_ipv6_tcp()
253 static int tcf_csum_ipv4_udp(struct sk_buff *skb, unsigned int ihl, in tcf_csum_ipv4_udp() argument
270 udph = tcf_csum_skb_nextlayer(skb, ihl, ipl, sizeof(*udph)); in tcf_csum_ipv4_udp()
283 skb->csum = csum_partial(udph, ipl - ihl, 0); in tcf_csum_ipv4_udp()
284 else if ((ul >= sizeof(*udph)) && (ul <= ipl - ihl)) in tcf_csum_ipv4_udp()
289 if (ul != ipl - ihl) in tcf_csum_ipv4_udp()
309 static int tcf_csum_ipv6_udp(struct sk_buff *skb, unsigned int ihl, in tcf_csum_ipv6_udp() argument
326 udph = tcf_csum_skb_nextlayer(skb, ihl, ipl, sizeof(*udph)); in tcf_csum_ipv6_udp()
337 skb->csum = csum_partial(udph, ipl - ihl, 0); in tcf_csum_ipv6_udp()
339 else if ((ul >= sizeof(*udph)) && (ul <= ipl - ihl)) in tcf_csum_ipv6_udp()
345 if (ul != ipl - ihl) in tcf_csum_ipv6_udp()
364 static int tcf_csum_sctp(struct sk_buff *skb, unsigned int ihl, in tcf_csum_sctp() argument
372 sctph = tcf_csum_skb_nextlayer(skb, ihl, ipl, sizeof(*sctph)); in tcf_csum_sctp()
377 skb_network_offset(skb) + ihl); in tcf_csum_sctp()
399 if (!tcf_csum_ipv4_icmp(skb, iph->ihl * 4, in tcf_csum_ipv4()
405 if (!tcf_csum_ipv4_igmp(skb, iph->ihl * 4, in tcf_csum_ipv4()
411 if (!tcf_csum_ipv4_tcp(skb, iph->ihl * 4, in tcf_csum_ipv4()
417 if (!tcf_csum_ipv4_udp(skb, iph->ihl * 4, in tcf_csum_ipv4()
423 if (!tcf_csum_ipv4_udp(skb, iph->ihl * 4, in tcf_csum_ipv4()
429 !tcf_csum_sctp(skb, iph->ihl * 4, ntohs(iph->tot_len))) in tcf_csum_ipv4()