Home
last modified time | relevance | path

Searched refs:s6_addr (Results 1 – 25 of 57) sorted by relevance

123

/linux/net/6lowpan/
H A Diphc.c99 ((((a)->s6_addr[8]) == (((m)[0]) ^ 0x02)) && \
100 (((a)->s6_addr[9]) == (m)[1]) && \
101 (((a)->s6_addr[10]) == (m)[2]) && \
102 (((a)->s6_addr[11]) == (m)[3]) && \
103 (((a)->s6_addr[12]) == (m)[4]) && \
104 (((a)->s6_addr[13]) == (m)[5]) && \
105 (((a)->s6_addr[14]) == (m)[6]) && \
106 (((a)->s6_addr[15]) == (m)[7]))
113 (((a)->s6_addr[10]) == 0) && \
114 (((a)->s6_addr[11]) == 0xff) && \
[all …]
/linux/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum2_mr_tcam.c167 &key->source.addr6.s6_addr[0x0], in mlxsw_sp2_mr_tcam_rule_parse6()
168 &key->source_mask.addr6.s6_addr[0x0], 4); in mlxsw_sp2_mr_tcam_rule_parse6()
170 &key->source.addr6.s6_addr[0x4], in mlxsw_sp2_mr_tcam_rule_parse6()
171 &key->source_mask.addr6.s6_addr[0x4], 4); in mlxsw_sp2_mr_tcam_rule_parse6()
173 &key->source.addr6.s6_addr[0x8], in mlxsw_sp2_mr_tcam_rule_parse6()
174 &key->source_mask.addr6.s6_addr[0x8], 4); in mlxsw_sp2_mr_tcam_rule_parse6()
176 &key->source.addr6.s6_addr[0xc], in mlxsw_sp2_mr_tcam_rule_parse6()
177 &key->source_mask.addr6.s6_addr[0xc], 4); in mlxsw_sp2_mr_tcam_rule_parse6()
179 &key->group.addr6.s6_addr[0x0], in mlxsw_sp2_mr_tcam_rule_parse6()
180 &key->group_mask.addr6.s6_addr[0x0], 4); in mlxsw_sp2_mr_tcam_rule_parse6()
[all …]
H A Dspectrum_flower.c379 &match.key->src.s6_addr[0x0], in mlxsw_sp_flower_parse_ipv6()
380 &match.mask->src.s6_addr[0x0], 4); in mlxsw_sp_flower_parse_ipv6()
382 &match.key->src.s6_addr[0x4], in mlxsw_sp_flower_parse_ipv6()
383 &match.mask->src.s6_addr[0x4], 4); in mlxsw_sp_flower_parse_ipv6()
385 &match.key->src.s6_addr[0x8], in mlxsw_sp_flower_parse_ipv6()
386 &match.mask->src.s6_addr[0x8], 4); in mlxsw_sp_flower_parse_ipv6()
388 &match.key->src.s6_addr[0xC], in mlxsw_sp_flower_parse_ipv6()
389 &match.mask->src.s6_addr[0xC], 4); in mlxsw_sp_flower_parse_ipv6()
391 &match.key->dst.s6_addr[0x0], in mlxsw_sp_flower_parse_ipv6()
392 &match.mask->dst.s6_addr[0x0], 4); in mlxsw_sp_flower_parse_ipv6()
[all …]
/linux/include/net/
H A D6lowpan.h192 ipaddr->s6_addr[0] = 0xFE; in lowpan_iphc_uncompress_eui64_lladdr()
193 ipaddr->s6_addr[1] = 0x80; in lowpan_iphc_uncompress_eui64_lladdr()
194 memcpy(&ipaddr->s6_addr[8], lladdr, EUI64_ADDR_LEN); in lowpan_iphc_uncompress_eui64_lladdr()
198 ipaddr->s6_addr[8] ^= 0x02; in lowpan_iphc_uncompress_eui64_lladdr()
208 ipaddr->s6_addr[0] = 0xFE; in lowpan_iphc_uncompress_eui48_lladdr()
209 ipaddr->s6_addr[1] = 0x80; in lowpan_iphc_uncompress_eui48_lladdr()
210 memcpy(&ipaddr->s6_addr[8], lladdr, 3); in lowpan_iphc_uncompress_eui48_lladdr()
211 ipaddr->s6_addr[11] = 0xFF; in lowpan_iphc_uncompress_eui48_lladdr()
212 ipaddr->s6_addr[12] = 0xFE; in lowpan_iphc_uncompress_eui48_lladdr()
213 memcpy(&ipaddr->s6_addr[13], lladdr + 3, 3); in lowpan_iphc_uncompress_eui48_lladdr()
H A Dipv6.h125 ((a)->s6_addr[1] & 0x0f) /* nonstandard */
137 ((a)->s6_addr[1] & 0x10)
139 ((a)->s6_addr[1] & 0x20)
141 ((a)->s6_addr[1] & 0x40)
617 memset(pfx->s6_addr, 0, sizeof(pfx->s6_addr)); in ipv6_addr_prefix()
618 memcpy(pfx->s6_addr, addr, o); in ipv6_addr_prefix()
620 pfx->s6_addr[o] = addr->s6_addr[o] & (0xff00 >> b); in ipv6_addr_prefix()
631 memcpy(addr->s6_addr, pfx, o); in ipv6_addr_prefix_copy()
633 addr->s6_addr[o] &= ~(0xff00 >> b); in ipv6_addr_prefix_copy()
634 addr->s6_addr[o] |= (pfx->s6_addr[o] & (0xff00 >> b)); in ipv6_addr_prefix_copy()
/linux/tools/testing/selftests/bpf/progs/
H A Dtest_lwt_ip_encap.c67 hdr.ip6hdr.saddr.s6_addr[0] = 0xfb; in bpf_lwt_encap_gre6()
68 hdr.ip6hdr.saddr.s6_addr[1] = 1; in bpf_lwt_encap_gre6()
69 hdr.ip6hdr.saddr.s6_addr[15] = 1; in bpf_lwt_encap_gre6()
71 hdr.ip6hdr.daddr.s6_addr[0] = 0xfb; in bpf_lwt_encap_gre6()
72 hdr.ip6hdr.daddr.s6_addr[1] = 0x10; in bpf_lwt_encap_gre6()
73 hdr.ip6hdr.daddr.s6_addr[15] = 1; in bpf_lwt_encap_gre6()
H A Dtest_tc_tunnel.c406 h_outer.ip.saddr.s6_addr[1] = 0xfd; in encap_ipv6_ipip6()
407 h_outer.ip.saddr.s6_addr[15] = 1; in encap_ipv6_ipip6()
408 h_outer.ip.daddr.s6_addr[1] = 0xfd; in encap_ipv6_ipip6()
409 h_outer.ip.daddr.s6_addr[15] = 2; in encap_ipv6_ipip6()
/linux/drivers/net/ethernet/netronome/nfp/flower/
H A Dmatch.c367 tmp = match.key->src.s6_addr[i] & in nfp_flower_compile_ipv6()
368 match.mask->src.s6_addr[i]; in nfp_flower_compile_ipv6()
369 ext->ipv6_src.s6_addr[i] |= tmp & in nfp_flower_compile_ipv6()
370 (~msk->ipv6_src.s6_addr[i]); in nfp_flower_compile_ipv6()
371 msk->ipv6_src.s6_addr[i] |= match.mask->src.s6_addr[i]; in nfp_flower_compile_ipv6()
373 tmp = match.key->dst.s6_addr[i] & in nfp_flower_compile_ipv6()
374 match.mask->dst.s6_addr[i]; in nfp_flower_compile_ipv6()
375 ext->ipv6_dst.s6_addr[i] |= tmp & in nfp_flower_compile_ipv6()
376 (~msk->ipv6_dst.s6_addr[i]); in nfp_flower_compile_ipv6()
377 msk->ipv6_dst.s6_addr[i] |= match.mask->dst.s6_addr[i]; in nfp_flower_compile_ipv6()
[all …]
/linux/net/ipv6/
H A Drpl.c18 memcpy(&dst->s6_addr[pfx], post, IPV6_PFXTAIL_LEN(pfx)); in ipv6_rpl_addr_decompress()
24 memcpy(dst, &addr->s6_addr[pfx], IPV6_PFXTAIL_LEN(pfx)); in ipv6_rpl_addr_compress()
65 if (daddr->s6_addr[plen] != in ipv6_rpl_srh_calc_cmpri()
66 inhdr->rpl_segaddr[i].s6_addr[plen]) in ipv6_rpl_srh_calc_cmpri()
80 if (daddr->s6_addr[plen] != last_segment->s6_addr[plen]) in ipv6_rpl_srh_calc_cmpre()
/linux/include/rdma/
H A Dib_addr.h144 memcpy(&out_in->sin6_addr.s6_addr, gid->raw, 16); in rdma_gid2ip()
208 memcpy(mac, &addr->s6_addr[8], 3); in rdma_get_ll_mac()
209 memcpy(mac + 3, &addr->s6_addr[13], 3); in rdma_get_ll_mac()
217 if (addr->s6_addr[0] == 0xff) in rdma_is_multicast_addr()
231 mac[i] = addr->s6_addr[i + 10]; in rdma_get_mcast_mac()
/linux/drivers/net/ethernet/chelsio/libcxgb/
H A Dlibcxgb_cm.c66 __func__, ip6->saddr.s6_addr, ip6->daddr.s6_addr, in cxgb_get_4tuple()
69 memcpy(peer_ip, ip6->saddr.s6_addr, 16); in cxgb_get_4tuple()
70 memcpy(local_ip, ip6->daddr.s6_addr, 16); in cxgb_get_4tuple()
/linux/tools/hv/
H A Dhv_kvp_daemon.c791 str = inet_ntop(family, &addr6->sin6_addr.s6_addr, tmp, 50); in kvp_process_ip_address()
1033 (int)v6_addr.s6_addr[0], (int)v6_addr.s6_addr[1], in expand_ipv6()
1034 (int)v6_addr.s6_addr[2], (int)v6_addr.s6_addr[3], in expand_ipv6()
1035 (int)v6_addr.s6_addr[4], (int)v6_addr.s6_addr[5], in expand_ipv6()
1036 (int)v6_addr.s6_addr[6], (int)v6_addr.s6_addr[7], in expand_ipv6()
1037 (int)v6_addr.s6_addr[8], (int)v6_addr.s6_addr[9], in expand_ipv6()
1038 (int)v6_addr.s6_addr[10], (int)v6_addr.s6_addr[11], in expand_ipv6()
1039 (int)v6_addr.s6_addr[12], (int)v6_addr.s6_addr[13], in expand_ipv6()
1040 (int)v6_addr.s6_addr[14], (int)v6_addr.s6_addr[15]); in expand_ipv6()
/linux/arch/loongarch/lib/
H A Dcsum.c127 src = *(const __uint128_t *)saddr->s6_addr; in csum_ipv6_magic()
128 dst = *(const __uint128_t *)daddr->s6_addr; in csum_ipv6_magic()
/linux/arch/arm64/lib/
H A Dcsum.c139 src = *(const __uint128_t *)saddr->s6_addr; in csum_ipv6_magic()
140 dst = *(const __uint128_t *)daddr->s6_addr; in csum_ipv6_magic()
/linux/drivers/net/ethernet/microchip/vcap/
H A Dvcap_tc.c111 vcap_netbytes_copy(sip.value, mt.key->src.s6_addr, 16); in vcap_tc_flower_handler_ipv6_usage()
112 vcap_netbytes_copy(sip.mask, mt.mask->src.s6_addr, 16); in vcap_tc_flower_handler_ipv6_usage()
119 vcap_netbytes_copy(dip.value, mt.key->dst.s6_addr, 16); in vcap_tc_flower_handler_ipv6_usage()
120 vcap_netbytes_copy(dip.mask, mt.mask->dst.s6_addr, 16); in vcap_tc_flower_handler_ipv6_usage()
/linux/drivers/net/ethernet/intel/ice/
H A Dice_tc_lib.h100 #define dst_ipv6_addr ip.v6.dst_ip6.s6_addr
102 #define src_ipv6_addr ip.v6.src_ip6.s6_addr
/linux/tools/testing/selftests/net/
H A Dipv6_flowlabel_mgr.c58 req.flr_dst.s6_addr[0] = 0xfd; in flowlabel_get()
59 req.flr_dst.s6_addr[15] = 0x1; in flowlabel_get()
H A Dipv6_flowlabel.c185 req.flr_dst.s6_addr[0] = 0xfd; in flowlabel_get()
186 req.flr_dst.s6_addr[15] = 0x1; in flowlabel_get()
/linux/drivers/infiniband/hw/cxgb4/
H A Dcm.c402 (const u32 *)&sin6->sin6_addr.s6_addr, in _c4iw_free_ep()
559 (const u32 *)&sin6->sin6_addr.s6_addr, 1); in act_open_req_arp_failure()
821 (const u32 *)&la6->sin6_addr.s6_addr, 1); in send_connect()
903 req6->local_ip_hi = *((__be64 *)(la6->sin6_addr.s6_addr)); in send_connect()
904 req6->local_ip_lo = *((__be64 *)(la6->sin6_addr.s6_addr + 8)); in send_connect()
905 req6->peer_ip_hi = *((__be64 *)(ra6->sin6_addr.s6_addr)); in send_connect()
906 req6->peer_ip_lo = *((__be64 *)(ra6->sin6_addr.s6_addr + 8)); in send_connect()
936 (const u32 *)&la6->sin6_addr.s6_addr, 1); in send_connect()
2213 laddr6->sin6_addr.s6_addr, in c4iw_reconnect()
2214 raddr6->sin6_addr.s6_addr, in c4iw_reconnect()
[all …]
/linux/net/core/
H A Dutils.c330 if (in6_pton(src, srclen, (u8 *)&addr6->sin6_addr.s6_addr, in inet6_pton()
409 if (!memcmp(in6->sin6_addr.s6_addr, in inet_addr_is_any()
410 in6_any.sin6_addr.s6_addr, 16)) in inet_addr_is_any()
/linux/drivers/net/ethernet/chelsio/cxgb4/
H A Dcxgb4_tc_flower.c221 memcpy(&fs->val.lip[0], match.key->dst.s6_addr, in cxgb4_process_flow_match()
223 memcpy(&fs->val.fip[0], match.key->src.s6_addr, in cxgb4_process_flow_match()
225 memcpy(&fs->mask.lip[0], match.mask->dst.s6_addr, in cxgb4_process_flow_match()
227 memcpy(&fs->mask.fip[0], match.mask->src.s6_addr, in cxgb4_process_flow_match()
231 memcpy(&fs->nat_lip[0], match.key->dst.s6_addr, in cxgb4_process_flow_match()
233 memcpy(&fs->nat_fip[0], match.key->src.s6_addr, in cxgb4_process_flow_match()
/linux/net/ipv6/netfilter/
H A Dip6t_eui64.c41 if (!memcmp(ipv6_hdr(skb)->saddr.s6_addr + 8, eui64, in eui64_mt6()
/linux/security/
H A Dlsm_audit.c408 memset(&sbn_pfx.s6_addr, 0, in dump_common_audit_data()
409 sizeof(sbn_pfx.s6_addr)); in dump_common_audit_data()
410 memcpy(&sbn_pfx.s6_addr, &a->u.ibpkey->subnet_prefix, in dump_common_audit_data()
/linux/drivers/scsi/cxgbi/cxgb4i/
H A Dcxgb4i.c360 req->local_ip_hi = *(__be64 *)(csk->saddr6.sin6_addr.s6_addr); in send_act_open_req6()
361 req->local_ip_lo = *(__be64 *)(csk->saddr6.sin6_addr.s6_addr + in send_act_open_req6()
363 req->peer_ip_hi = *(__be64 *)(csk->daddr6.sin6_addr.s6_addr); in send_act_open_req6()
364 req->peer_ip_lo = *(__be64 *)(csk->daddr6.sin6_addr.s6_addr + in send_act_open_req6()
384 req->local_ip_hi = *(__be64 *)(csk->saddr6.sin6_addr.s6_addr); in send_act_open_req6()
385 req->local_ip_lo = *(__be64 *)(csk->saddr6.sin6_addr.s6_addr + in send_act_open_req6()
387 req->peer_ip_hi = *(__be64 *)(csk->daddr6.sin6_addr.s6_addr); in send_act_open_req6()
388 req->peer_ip_lo = *(__be64 *)(csk->daddr6.sin6_addr.s6_addr + in send_act_open_req6()
407 req->local_ip_hi = *(__be64 *)(csk->saddr6.sin6_addr.s6_addr); in send_act_open_req6()
408 req->local_ip_lo = *(__be64 *)(csk->saddr6.sin6_addr.s6_addr + in send_act_open_req6()
[all …]
/linux/include/uapi/linux/
H A Din6.h41 #define s6_addr in6_u.u6_addr8 macro

123