Lines Matching defs:iph
746 struct iphdr *iph;
761 iph = skb_put(skb, sizeof(struct iphdr));
762 iph->protocol = IPPROTO_UDP;
763 iph->saddr = in_aton("192.0.2.1");
764 iph->daddr = in_aton("198.51.100.1");
765 iph->version = 0x4;
766 iph->frag_off = 0;
767 iph->ihl = 0x5;
768 iph->tot_len = htons(tot_len);
769 iph->ttl = 100;
770 iph->check = 0;
771 iph->check = ip_fast_csum((unsigned char *)iph, iph->ihl);