/linux/tools/testing/selftests/bpf/progs/ |
H A D | test_tcp_custom_syncookie.h | 94 sum += (__force u32)saddr->in6_u.u6_addr32[0]; in csum_ipv6_magic() 95 carry = (sum < (__force u32)saddr->in6_u.u6_addr32[0]); in csum_ipv6_magic() 98 sum += (__force u32)saddr->in6_u.u6_addr32[1]; in csum_ipv6_magic() 99 carry = (sum < (__force u32)saddr->in6_u.u6_addr32[1]); in csum_ipv6_magic() 102 sum += (__force u32)saddr->in6_u.u6_addr32[2]; in csum_ipv6_magic() 103 carry = (sum < (__force u32)saddr->in6_u.u6_addr32[2]); in csum_ipv6_magic() 106 sum += (__force u32)saddr->in6_u.u6_addr32[3]; in csum_ipv6_magic() 107 carry = (sum < (__force u32)saddr->in6_u.u6_addr32[3]); in csum_ipv6_magic() 110 sum += (__force u32)daddr->in6_u.u6_addr32[0]; in csum_ipv6_magic() 111 carry = (sum < (__force u32)daddr->in6_u.u6_addr32[0]); in csum_ipv6_magic() [all …]
|
H A D | cgroup_skb_sk_lookup_kern.c | 23 dst[0] = src->in6_u.u6_addr32[0]; in set_ip() 24 dst[1] = src->in6_u.u6_addr32[1]; in set_ip() 25 dst[2] = src->in6_u.u6_addr32[2]; in set_ip() 26 dst[3] = src->in6_u.u6_addr32[3]; in set_ip()
|
H A D | test_xdp_noinline.c | 313 ip6h->saddr.in6_u.u6_addr32[0] = 1; in encap_v6() 314 ip6h->saddr.in6_u.u6_addr32[1] = 2; in encap_v6() 315 ip6h->saddr.in6_u.u6_addr32[2] = 3; in encap_v6() 316 ip6h->saddr.in6_u.u6_addr32[3] = ip_suffix; in encap_v6() 317 memcpy(ip6h->daddr.in6_u.u6_addr32, dst->dstv6, 16); in encap_v6() 450 memcpy(tmp_addr, ip6h->saddr.in6_u.u6_addr32, 16); in send_icmp6_reply() 451 memcpy(ip6h->saddr.in6_u.u6_addr32, ip6h->daddr.in6_u.u6_addr32, 16); in send_icmp6_reply() 452 memcpy(ip6h->daddr.in6_u.u6_addr32, tmp_addr, 16); in send_icmp6_reply() 476 memcpy(pckt->flow.srcv6, ip6h->daddr.in6_u.u6_addr32, 16); in parse_icmpv6() 477 memcpy(pckt->flow.dstv6, ip6h->saddr.in6_u.u6_addr32, 16); in parse_icmpv6() [all …]
|
H A D | test_tcp_custom_syncookie.c | 336 first = (u64)ctx->ipv6->saddr.in6_u.u6_addr8[0] << 32 | in tcp_prepare_cookie() 337 ctx->ipv6->daddr.in6_u.u6_addr32[0]; in tcp_prepare_cookie() 473 first = (u64)ctx->ipv6->saddr.in6_u.u6_addr8[0] << 32 | in tcp_validate_cookie() 474 ctx->ipv6->daddr.in6_u.u6_addr32[0]; in tcp_validate_cookie()
|
H A D | bpf_tracing_net.h | 132 #define s6_addr32 in6_u.u6_addr32
|
H A D | xdp_synproxy_kern.c | 158 sum += (__u32)saddr->in6_u.u6_addr32[i]; in csum_ipv6_magic() 162 sum += (__u32)daddr->in6_u.u6_addr32[i]; in csum_ipv6_magic()
|
/linux/drivers/net/wireguard/selftest/ |
H A D | ratelimiter.c | 67 hdr6->saddr.in6_u.u6_addr32[2] = htonl(i); in timings_test() 68 hdr6->saddr.in6_u.u6_addr32[3] = htonl(i); in timings_test() 77 hdr6->saddr.in6_u.u6_addr32[0] = in timings_test() 78 htonl(ntohl(hdr6->saddr.in6_u.u6_addr32[0]) + i + 1); in timings_test() 86 hdr6->saddr.in6_u.u6_addr32[0] = in timings_test() 87 htonl(ntohl(hdr6->saddr.in6_u.u6_addr32[0]) - i - 1); in timings_test() 164 hdr6->saddr.in6_u.u6_addr32[0] = htonl(1212); in wg_ratelimiter_selftest() 165 hdr6->saddr.in6_u.u6_addr32[1] = htonl(289188); in wg_ratelimiter_selftest()
|
/linux/tools/testing/selftests/net/ |
H A D | nat6to4.bpf.c | 237 ip6.saddr.in6_u.u6_addr32[0] = bpf_htonl(0x20010db8); in sched_cls_egress4_snat4_prog() 238 ip6.saddr.in6_u.u6_addr32[1] = 0; in sched_cls_egress4_snat4_prog() 239 ip6.saddr.in6_u.u6_addr32[2] = 0; in sched_cls_egress4_snat4_prog() 240 ip6.saddr.in6_u.u6_addr32[3] = bpf_htonl(1); in sched_cls_egress4_snat4_prog() 241 ip6.daddr.in6_u.u6_addr32[0] = bpf_htonl(0x20010db8); in sched_cls_egress4_snat4_prog() 242 ip6.daddr.in6_u.u6_addr32[1] = 0; in sched_cls_egress4_snat4_prog() 243 ip6.daddr.in6_u.u6_addr32[2] = 0; in sched_cls_egress4_snat4_prog() 244 ip6.daddr.in6_u.u6_addr32[3] = bpf_htonl(2); in sched_cls_egress4_snat4_prog()
|
/linux/include/uapi/linux/ |
H A D | in6.h | 40 } in6_u; member 41 #define s6_addr in6_u.u6_addr8 43 #define s6_addr16 in6_u.u6_addr16 44 #define s6_addr32 in6_u.u6_addr32
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/diag/ |
H A D | fs_tracepoint.c | 101 .in6_u.u6_addr32 = {__constant_htonl(0xffffffff), in print_lyr_2_4_hdrs() 109 memcpy(src_ipv6.m.in6_u.u6_addr8, in print_lyr_2_4_hdrs() 113 memcpy(dst_ipv6.m.in6_u.u6_addr8, in print_lyr_2_4_hdrs() 117 memcpy(src_ipv6.v.in6_u.u6_addr8, in print_lyr_2_4_hdrs() 121 memcpy(dst_ipv6.v.in6_u.u6_addr8, in print_lyr_2_4_hdrs()
|
/linux/drivers/infiniband/hw/qedr/ |
H A D | qedr_iw_cm.c | 75 laddr6->sin6_addr.in6_u.u6_addr32[i] = in qedr_fill_sockaddr6() 77 raddr6->sin6_addr.in6_u.u6_addr32[i] = in qedr_fill_sockaddr6() 422 laddr6.in6_u.u6_addr32[i] = htonl(addr[i]); in qedr_iw_get_vlan_ipv6() 608 ntohl(raddr6->sin6_addr.in6_u.u6_addr32[i]); in qedr_iw_connect() 610 ntohl(laddr6->sin6_addr.in6_u.u6_addr32[i]); in qedr_iw_connect() 701 ntohl(laddr6->sin6_addr.in6_u.u6_addr32[i]); in qedr_iw_create_listen()
|
/linux/drivers/infiniband/hw/irdma/ |
H A D | cm.c | 124 irdma_copy_ip_htonl(laddr6->sin6_addr.in6_u.u6_addr32, in irdma_fill_sockaddr6() 126 irdma_copy_ip_htonl(raddr6->sin6_addr.in6_u.u6_addr32, in irdma_fill_sockaddr6() 531 irdma_copy_ip_htonl(ip6h->saddr.in6_u.u6_addr32, in irdma_form_uda_cm_frame() 533 irdma_copy_ip_htonl(ip6h->daddr.in6_u.u6_addr32, in irdma_form_uda_cm_frame() 1569 irdma_copy_ip_htonl(laddr6.in6_u.u6_addr32, loc_addr); in irdma_iw_get_vlan_prio() 1609 irdma_copy_ip_htonl(laddr6.in6_u.u6_addr32, addr); in irdma_get_vlan_mac_ipv6() 1699 ifp->addr.in6_u.u6_addr32); in irdma_add_mqh_6() 2052 irdma_copy_ip_htonl(dst_addr.sin6_addr.in6_u.u6_addr32, dest); in irdma_addr_resolve_neigh_ipv6() 2054 irdma_copy_ip_htonl(src_addr.sin6_addr.in6_u.u6_addr32, src); in irdma_addr_resolve_neigh_ipv6() 2066 neigh = dst_neigh_lookup(dst, dst_addr.sin6_addr.in6_u.u6_addr32); in irdma_addr_resolve_neigh_ipv6() [all …]
|
H A D | utils.c | 217 irdma_copy_ip_ntohl(local_ipaddr6, ifa->addr.in6_u.u6_addr32); in irdma_inet6addr_event() 365 ifp->addr.in6_u.u6_addr32); in irdma_add_ipv6_addr() 1427 irdma_copy_ip_ntohl(loc_addr, ip6h->daddr.in6_u.u6_addr32); in irdma_ieq_get_qp() 1428 irdma_copy_ip_ntohl(rem_addr, ip6h->saddr.in6_u.u6_addr32); in irdma_ieq_get_qp() 1493 ip6h->daddr.in6_u.u6_addr32); in irdma_puda_ieq_get_ah_info() 1495 ip6h->saddr.in6_u.u6_addr32); in irdma_puda_ieq_get_ah_info()
|
H A D | verbs.c | 1301 av->dgid_addr.saddr_in6.sin6_addr.in6_u.u6_addr32; in irdma_modify_qp_roce() 1303 av->sgid_addr.saddr_in6.sin6_addr.in6_u.u6_addr32; in irdma_modify_qp_roce() 4207 sgid_addr.saddr_in6.sin6_addr.in6_u.u6_addr32); in irdma_attach_mcast() 4341 sgid_addr.saddr_in6.sin6_addr.in6_u.u6_addr32); in irdma_detach_mcast() 4480 dgid_addr.saddr_in6.sin6_addr.in6_u.u6_addr32); in irdma_setup_ah() 4482 sgid_addr.saddr_in6.sin6_addr.in6_u.u6_addr32); in irdma_setup_ah()
|
/linux/security/tomoyo/ |
H A D | network.c | 53 u8 * const min = ptr->ip[0].in6_u.u6_addr8; in tomoyo_parse_ipaddr_union() 54 u8 * const max = ptr->ip[1].in6_u.u6_addr8; in tomoyo_parse_ipaddr_union()
|
/linux/net/sunrpc/ |
H A D | addr.c | 203 u8 *addr = (u8 *)&sin6->sin6_addr.in6_u; in rpc_pton6()
|
/linux/drivers/net/ethernet/intel/iavf/ |
H A D | iavf_fdir.c | 14 .in6_u = { 23 .in6_u = {
|
/linux/drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/ |
H A D | chcr_ktls.c | 252 cpl->local_ip_hi = *(__be64 *)&sk->sk_v6_rcv_saddr.in6_u.u6_addr8[0]; in chcr_ktls_act_open_req6() 253 cpl->local_ip_lo = *(__be64 *)&sk->sk_v6_rcv_saddr.in6_u.u6_addr8[8]; in chcr_ktls_act_open_req6() 254 cpl->peer_ip_hi = *(__be64 *)&sk->sk_v6_daddr.in6_u.u6_addr8[0]; in chcr_ktls_act_open_req6() 255 cpl->peer_ip_lo = *(__be64 *)&sk->sk_v6_daddr.in6_u.u6_addr8[8]; in chcr_ktls_act_open_req6() 487 memcpy(daaddr, sk->sk_v6_daddr.in6_u.u6_addr8, 16); in chcr_ktls_dev_add()
|
/linux/drivers/scsi/be2iscsi/ |
H A D | be_mgmt.c | 178 &daddr_in6->sin6_addr.in6_u.u6_addr8, 16); in mgmt_open_connection() 182 &daddr_in6->sin6_addr.in6_u.u6_addr8, 16); in mgmt_open_connection()
|
/linux/drivers/scsi/qla4xxx/ |
H A D | ql4_mbx.c | 542 ha->ip_config.ipv6_link_local_addr.in6_u.u6_addr8[0] = 0xFE; in qla4xxx_update_local_ip() 543 ha->ip_config.ipv6_link_local_addr.in6_u.u6_addr8[1] = 0x80; in qla4xxx_update_local_ip() 545 memcpy(&ha->ip_config.ipv6_link_local_addr.in6_u.u6_addr8[8], in qla4xxx_update_local_ip()
|
/linux/drivers/net/ethernet/netronome/nfp/flower/ |
H A D | offload.c | 659 merge->ipv6.ipv6_src.in6_u.u6_addr32[i] |= in nfp_flower_update_merge_with_actions() 665 merge->ipv6.ipv6_dst.in6_u.u6_addr32[i] |= in nfp_flower_update_merge_with_actions()
|
/linux/net/tipc/ |
H A D | udp_media.c | 715 memcpy(node_id, local.ipv6.in6_u.u6_addr8, 16); in tipc_udp_enable()
|
/linux/drivers/net/ethernet/intel/ice/ |
H A D | ice_ethtool_fdir.c | 12 .in6_u = { 21 .in6_u = {
|
H A D | ice_virtchnl_fdir.c | 975 ip6h->saddr.in6_u.u6_addr8, in ice_vc_fdir_parse_pattern() 978 ip6h->daddr.in6_u.u6_addr8, in ice_vc_fdir_parse_pattern()
|
/linux/drivers/net/wireless/ath/wcn36xx/ |
H A D | smd.c | 3010 &vif_priv->target_ipv6_addrs[0].in6_u, in wcn36xx_smd_ipv6_ns_offload() 3013 &vif_priv->target_ipv6_addrs[0].in6_u, in wcn36xx_smd_ipv6_ns_offload() 3019 &vif_priv->target_ipv6_addrs[1].in6_u, in wcn36xx_smd_ipv6_ns_offload()
|