Home
last modified time | relevance | path

Searched refs:ip4 (Results 1 – 14 of 14) sorted by relevance

/drivers/infiniband/core/
Dud_header.c121 { STRUCT_FIELD(ip4, ver),
125 { STRUCT_FIELD(ip4, hdr_len),
129 { STRUCT_FIELD(ip4, tos),
133 { STRUCT_FIELD(ip4, tot_len),
137 { STRUCT_FIELD(ip4, id),
141 { STRUCT_FIELD(ip4, frag_off),
145 { STRUCT_FIELD(ip4, ttl),
149 { STRUCT_FIELD(ip4, protocol),
153 { STRUCT_FIELD(ip4, check),
157 { STRUCT_FIELD(ip4, saddr),
[all …]
Dcma.c381 } ip4; member
1292 .sin_addr.s_addr = hdr->dst_addr.ip4.addr, in cma_save_ip4_info()
1300 .sin_addr.s_addr = hdr->src_addr.ip4.addr, in cma_save_ip4_info()
1570 hdr->dst_addr.ip4.addr != ip4_addr) in cma_match_private_data()
3917 cma_hdr->src_addr.ip4.addr = src4->sin_addr.s_addr; in cma_format_hdr()
3918 cma_hdr->dst_addr.ip4.addr = dst4->sin_addr.s_addr; in cma_format_hdr()
/drivers/net/ethernet/intel/ixgbevf/
Dipsec.c180 __be32 spi, bool ip4) in ixgbevf_ipsec_find_rx_state() argument
189 ((ip4 && *daddr == rsa->xs->id.daddr.a4) || in ixgbevf_ipsec_find_rx_state()
190 (!ip4 && !memcmp(daddr, &rsa->xs->id.daddr.a6, in ixgbevf_ipsec_find_rx_state()
561 struct iphdr *ip4 = NULL; in ixgbevf_ipsec_rx() local
574 ip4 = (struct iphdr *)(skb->data + ETH_HLEN); in ixgbevf_ipsec_rx()
575 daddr = &ip4->daddr; in ixgbevf_ipsec_rx()
576 c_hdr = (u8 *)ip4 + ip4->ihl * 4; in ixgbevf_ipsec_rx()
598 xs = ixgbevf_ipsec_find_rx_state(ipsec, daddr, proto, spi, !!ip4); in ixgbevf_ipsec_rx()
/drivers/net/ethernet/intel/ixgbe/
Dixgbe_ipsec.c394 __be32 spi, bool ip4) in ixgbe_ipsec_find_rx_state() argument
405 ((ip4 && *daddr == rsa->xs->id.daddr.a4) || in ixgbe_ipsec_find_rx_state()
406 (!ip4 && !memcmp(daddr, &rsa->xs->id.daddr.a6, in ixgbe_ipsec_find_rx_state()
1169 struct iphdr *ip4 = NULL; in ixgbe_ipsec_rx() local
1182 ip4 = (struct iphdr *)(skb->data + ETH_HLEN); in ixgbe_ipsec_rx()
1183 daddr = &ip4->daddr; in ixgbe_ipsec_rx()
1184 c_hdr = (u8 *)ip4 + ip4->ihl * 4; in ixgbe_ipsec_rx()
1206 xs = ixgbe_ipsec_find_rx_state(ipsec, daddr, proto, spi, !!ip4); in ixgbe_ipsec_rx()
/drivers/net/ipvlan/
Dipvlan.h79 struct in_addr ip4; /* IPv4 address on logical interface */ member
82 #define ip4addr ipu.ip4
/drivers/infiniband/ulp/srp/
Dib_srp.h237 struct sockaddr_in ip4; member
243 struct sockaddr_in ip4; member
/drivers/infiniband/hw/qedr/
Dqedr_roce_cm.c470 udh->ip4.protocol = IPPROTO_UDP; in qedr_gsi_build_header()
471 udh->ip4.tos = htonl(grh->flow_label); in qedr_gsi_build_header()
472 udh->ip4.frag_off = htons(IP_DF); in qedr_gsi_build_header()
473 udh->ip4.ttl = grh->hop_limit; in qedr_gsi_build_header()
476 udh->ip4.saddr = ipv4_addr; in qedr_gsi_build_header()
478 udh->ip4.daddr = ipv4_addr; in qedr_gsi_build_header()
/drivers/net/wireguard/selftest/
Dallowedips.c425 static __init inline struct in_addr *ip4(u8 a, u8 b, u8 c, u8 d) in ip4() function
625 !memcmp(ip, ip4(192, 95, 5, 64), sizeof(struct in_addr))) in wg_allowedips_selftest()
632 !memcmp(ip, ip4(10, 1, 0, 16), sizeof(struct in_addr))) in wg_allowedips_selftest()
/drivers/infiniband/hw/bnxt_re/
Dib_verbs.c2204 qp->qp1_hdr.ip4.tos = 0; in bnxt_re_build_qp1_send_v2()
2205 qp->qp1_hdr.ip4.id = 0; in bnxt_re_build_qp1_send_v2()
2206 qp->qp1_hdr.ip4.frag_off = htons(IP_DF); in bnxt_re_build_qp1_send_v2()
2207 qp->qp1_hdr.ip4.ttl = qplib_ah->hop_limit; in bnxt_re_build_qp1_send_v2()
2209 memcpy(&qp->qp1_hdr.ip4.saddr, sgid_attr->gid.raw + 12, 4); in bnxt_re_build_qp1_send_v2()
2210 memcpy(&qp->qp1_hdr.ip4.daddr, qplib_ah->dgid.data + 12, 4); in bnxt_re_build_qp1_send_v2()
2211 qp->qp1_hdr.ip4.check = ib_ud_ip4_csum(&qp->qp1_hdr); in bnxt_re_build_qp1_send_v2()
/drivers/net/ethernet/mellanox/mlx5/core/
Den_rx.c935 struct iphdr *ip4; in mlx5e_skb_csum_fixup() local
951 ip4 = (struct iphdr *)(skb->data + network_depth); in mlx5e_skb_csum_fixup()
952 pkt_len = network_depth + ntohs(ip4->tot_len); in mlx5e_skb_csum_fixup()
Den_tc.c2719 struct iphdr ip4; member
2733 [FLOW_ACT_MANGLE_HDR_TYPE_IP4] = offsetof(struct pedit_headers, ip4),
2815 OFFLOAD(IP_DSCP, 8, 0xfc, ip4.tos, 0, ip_dscp),
2816 OFFLOAD(IP_TTL, 8, U8_MAX, ip4.ttl, 0, ttl_hoplimit),
2817 OFFLOAD(SIPV4, 32, U32_MAX, ip4.saddr, 0, src_ipv4_src_ipv6.ipv4_layout.ipv4),
2818 OFFLOAD(DIPV4, 32, U32_MAX, ip4.daddr, 0, dst_ipv4_dst_ipv6.ipv4_layout.ipv4),
/drivers/infiniband/hw/mlx4/
Dqp.c3088 sqp->ud_header.ip4.tos = in build_mlx_header()
3090 sqp->ud_header.ip4.id = 0; in build_mlx_header()
3091 sqp->ud_header.ip4.frag_off = htons(IP_DF); in build_mlx_header()
3092 sqp->ud_header.ip4.ttl = ah->av.eth.hop_limit; in build_mlx_header()
3094 memcpy(&sqp->ud_header.ip4.saddr, in build_mlx_header()
3096 memcpy(&sqp->ud_header.ip4.daddr, ah->av.ib.dgid + 12, 4); in build_mlx_header()
3097 sqp->ud_header.ip4.check = ib_ud_ip4_csum(&sqp->ud_header); in build_mlx_header()
/drivers/net/hyperv/
Dhyperv_net.h1387 u8 ip4; member
Drndis_filter.c1319 if (hwcaps.rsc.ip4 && hwcaps.rsc.ip6) { in rndis_netdev_set_hwcaps()