Lines Matching defs:iph
1424 struct iphdr *iph = (struct iphdr *)buf->iph;
1427 if (iph->version == 4) {
1428 loc_addr[0] = ntohl(iph->daddr);
1429 rem_addr[0] = ntohl(iph->saddr);
1431 ip6h = (struct ipv6hdr *)buf->iph;
1473 struct iphdr *iph;
1488 iph = (struct iphdr *)buf->iph;
1489 ah_info->hop_ttl = iph->ttl;
1490 ah_info->tc_tos = iph->tos;
1491 ah_info->dest_ip_addr[0] = ntohl(iph->daddr);
1492 ah_info->src_ip_addr[0] = ntohl(iph->saddr);
1494 ip6h = (struct ipv6hdr *)buf->iph;
1519 struct iphdr *iph;
1525 iph = (struct iphdr *)(addr + buf->maclen);
1528 iph->tot_len = htons(pktsize);
1561 struct iphdr *iph;
1578 buf->iph = mem + buf->maclen;
1579 iph = (struct iphdr *)buf->iph;
1580 buf->tcph = buf->iph + iphlen;
1584 pkt_len = ntohs(iph->tot_len);
1586 ip6h = (struct ipv6hdr *)buf->iph;
1630 buf->iph = mem + IRDMA_IPV4_PAD;
1632 buf->iph = mem;