Searched refs:ip4h (Results 1 - 2 of 2) sorted by relevance
/freebsd-11-stable/contrib/ofed/libibverbs/ |
H A D | verbs.c | 748 struct ip *ip4h = (struct ip *)((void *)grh + 20); local 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 792 set_ah_attr_by_ipv4(struct ibv_context *context, struct ibv_ah_attr *ah_attr, struct ip *ip4h, uint8_t port_num) argument [all...] |
/freebsd-11-stable/sys/ofed/drivers/infiniband/core/ |
H A D | ib_verbs.c | 360 const struct ip *ip4h = (const struct ip *)&hdr->roce4grh; local 368 return (ip4h->ip_v == 4) ? 4 : 0; 374 if (ip4h->ip_hl != 5) 381 memcpy(&ip4h_checked, ip4h, sizeof(ip4h_checked)); 387 if (ip4h->ip_sum == ip4h_checked.ip_sum)
|
Completed in 76 milliseconds