Lines Matching refs:ip4h
748 struct ip *ip4h = (struct ip *)((void *)grh + 20);
752 if (ip4h->ip_v == 4)
758 if (ip4h->ip_hl != 5) /* IPv4 header length must be 5 for RoCE v2. */
765 memcpy(&ip4h_checked, ip4h, sizeof(ip4h_checked));
772 if (ip4h->ip_sum == ip4h_checked.ip_sum)
794 struct ip *ip4h, uint8_t port_num)
800 if (IN_CLASSD(be32toh(ip4h->ip_dst.s_addr))) {
805 map_ipv4_addr_to_ipv6(ip4h->ip_dst.s_addr, (struct in6_addr *)&sgid);
811 map_ipv4_addr_to_ipv6(ip4h->ip_src.s_addr,
814 ah_attr->grh.hop_limit = ip4h->ip_ttl;
815 ah_attr->grh.traffic_class = ip4h->ip_tos;