Lines Matching defs:iph
82 struct iphdr *iph, *orig_iph;
91 iph = data + off;
102 iph->ttl = DEFAULT_TTL;
103 iph->daddr = orig_iph->saddr;
104 iph->saddr = orig_iph->daddr;
105 iph->version = 4;
106 iph->ihl = 5;
107 iph->protocol = IPPROTO_ICMP;
108 iph->tos = 0;
109 iph->tot_len = htons(
111 iph->check = 0;
113 ipv4_csum(iph, sizeof(struct iphdr), &csum);
114 iph->check = csum;