Lines Matching refs:iphdr
1130 struct iphdr *iphdr,
1144 memcpy((char *)iphdr, iphdr4l2tp, sizeof(iphdr4l2tp));
1146 iphdr->saddr = inet->inet_saddr; /* Source IP address */
1147 iphdr->daddr = inet->inet_daddr; /* Destination IP address */
1149 iphdr->saddr = inet->saddr; /* Source IP address */
1150 iphdr->daddr = inet->daddr; /* Destination IP address */
1152 iphdr->tot_len = htons(total_len);
1156 ip_select_ident((struct iphdr *)iphdr, &rt->dst, sk);
1158 ip_select_ident((struct iphdr *)iphdr, &rt->u.dst, sk);
1161 ip_select_ident((struct iphdr *)iphdr, NULL, sk);
1164 iphdr->check = ip_fast_csum((unsigned char *) iphdr, iphdr->ihl);
1192 struct iphdr *iph, tmp_iph;
1322 iph = (struct iphdr *)skb_push(skb, sizeof(struct iphdr));