Lines Matching defs:iph
44 struct iphdr *iph;
59 iph = skb_put(skb, sizeof(struct iphdr));
60 iph->protocol = IPPROTO_UDP;
61 iph->saddr = in_aton("192.0.2.1");
62 iph->daddr = in_aton("198.51.100.1");
63 iph->version = 0x4;
64 iph->frag_off = 0;
65 iph->ihl = 0x5;
66 iph->tot_len = htons(tot_len);
67 iph->id = 0;
68 iph->ttl = 100;
69 iph->check = 0;
70 iph->check = ip_fast_csum((unsigned char *)iph, iph->ihl);