Lines Matching defs:iphdr
1381 struct iphdr *iphdr;
1393 bfflen += sizeof(*iphdr);
1433 iphdr = (struct iphdr *)hdr;
1434 memcpy(&iphdr->saddr, &attrs->saddr.a4, 4);
1435 memcpy(&iphdr->daddr, &attrs->daddr.a4, 4);
1436 iphdr->version = 4;
1437 iphdr->ihl = 5;
1438 iphdr->ttl = IPSEC_TUNNEL_DEFAULT_TTL;
1439 iphdr->protocol = IPPROTO_ESP;
1440 hdr += sizeof(*iphdr);