Lines Matching defs:ih
41 const struct iphdr *ih;
49 ih = skb_header_pointer(skb, iphoff, sizeof(_iph), &_iph);
50 if (ih == NULL) {
59 &ih->saddr, &ih->daddr);
63 ntohs(ih->tot_len), ih->tos & IPTOS_TOS_MASK,
64 ih->tos & IPTOS_PREC_MASK, ih->ttl, ntohs(ih->id));
67 if (ntohs(ih->frag_off) & IP_CE)
69 if (ntohs(ih->frag_off) & IP_DF)
71 if (ntohs(ih->frag_off) & IP_MF)
75 if (ntohs(ih->frag_off) & IP_OFFSET)
76 printk("FRAG:%u ", ntohs(ih->frag_off) & IP_OFFSET);
79 ih->ihl * 4 > sizeof(struct iphdr)) {
84 optsize = ih->ihl * 4 - sizeof(struct iphdr);
99 switch (ih->protocol) {
107 if (ntohs(ih->frag_off) & IP_OFFSET)
111 th = skb_header_pointer(skb, iphoff + ih->ihl * 4,
115 skb->len - iphoff - ih->ihl*4);
158 iphoff+ih->ihl*4+sizeof(_tcph),
178 if (ih->protocol == IPPROTO_UDP)
184 if (ntohs(ih->frag_off) & IP_OFFSET)
188 uh = skb_header_pointer(skb, iphoff+ih->ihl*4,
192 skb->len - iphoff - ih->ihl*4);
226 if (ntohs(ih->frag_off) & IP_OFFSET)
230 ich = skb_header_pointer(skb, iphoff + ih->ihl * 4,
234 skb->len - iphoff - ih->ihl*4);
244 skb->len-iphoff-ih->ihl*4 < required_len[ich->type]) {
246 skb->len - iphoff - ih->ihl*4);
275 iphoff + ih->ihl*4+sizeof(_icmph));
291 if (ntohs(ih->frag_off) & IP_OFFSET)
298 ah = skb_header_pointer(skb, iphoff+ih->ihl*4,
302 skb->len - iphoff - ih->ihl*4);
317 if (ntohs(ih->frag_off) & IP_OFFSET)
321 eh = skb_header_pointer(skb, iphoff+ih->ihl*4,
325 skb->len - iphoff - ih->ihl*4);
335 printk("PROTO=%u ", ih->protocol);