/linux-5.19.10/net/6lowpan/ |
D | iphc.c | 99 ((((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 …]
|
D | core.c | 128 addrconf_ifid_802154_6lowpan(addr.s6_addr + 8, dev) == 0) { in lowpan_event()
|
/linux-5.19.10/drivers/net/ethernet/mellanox/mlxsw/ |
D | spectrum2_mr_tcam.c | 158 &key->source.addr6.s6_addr[0x0], in mlxsw_sp2_mr_tcam_rule_parse6() 159 &key->source_mask.addr6.s6_addr[0x0], 4); in mlxsw_sp2_mr_tcam_rule_parse6() 161 &key->source.addr6.s6_addr[0x4], in mlxsw_sp2_mr_tcam_rule_parse6() 162 &key->source_mask.addr6.s6_addr[0x4], 4); in mlxsw_sp2_mr_tcam_rule_parse6() 164 &key->source.addr6.s6_addr[0x8], in mlxsw_sp2_mr_tcam_rule_parse6() 165 &key->source_mask.addr6.s6_addr[0x8], 4); in mlxsw_sp2_mr_tcam_rule_parse6() 167 &key->source.addr6.s6_addr[0xc], in mlxsw_sp2_mr_tcam_rule_parse6() 168 &key->source_mask.addr6.s6_addr[0xc], 4); in mlxsw_sp2_mr_tcam_rule_parse6() 170 &key->group.addr6.s6_addr[0x0], in mlxsw_sp2_mr_tcam_rule_parse6() 171 &key->group_mask.addr6.s6_addr[0x0], 4); in mlxsw_sp2_mr_tcam_rule_parse6() [all …]
|
D | spectrum_flower.c | 350 &match.key->src.s6_addr[0x0], in mlxsw_sp_flower_parse_ipv6() 351 &match.mask->src.s6_addr[0x0], 4); in mlxsw_sp_flower_parse_ipv6() 353 &match.key->src.s6_addr[0x4], in mlxsw_sp_flower_parse_ipv6() 354 &match.mask->src.s6_addr[0x4], 4); in mlxsw_sp_flower_parse_ipv6() 356 &match.key->src.s6_addr[0x8], in mlxsw_sp_flower_parse_ipv6() 357 &match.mask->src.s6_addr[0x8], 4); in mlxsw_sp_flower_parse_ipv6() 359 &match.key->src.s6_addr[0xC], in mlxsw_sp_flower_parse_ipv6() 360 &match.mask->src.s6_addr[0xC], 4); in mlxsw_sp_flower_parse_ipv6() 362 &match.key->dst.s6_addr[0x0], in mlxsw_sp_flower_parse_ipv6() 363 &match.mask->dst.s6_addr[0x0], 4); in mlxsw_sp_flower_parse_ipv6() [all …]
|
/linux-5.19.10/include/net/ |
D | 6lowpan.h | 192 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()
|
D | ipv6.h | 125 ((a)->s6_addr[1] & 0x0f) /* nonstandard */ 137 ((a)->s6_addr[1] & 0x10) 139 ((a)->s6_addr[1] & 0x20) 141 ((a)->s6_addr[1] & 0x40) 581 memset(pfx->s6_addr, 0, sizeof(pfx->s6_addr)); in ipv6_addr_prefix() 582 memcpy(pfx->s6_addr, addr, o); in ipv6_addr_prefix() 584 pfx->s6_addr[o] = addr->s6_addr[o] & (0xff00 >> b); in ipv6_addr_prefix() 595 memcpy(addr->s6_addr, pfx, o); in ipv6_addr_prefix_copy() 597 addr->s6_addr[o] &= ~(0xff00 >> b); in ipv6_addr_prefix_copy() 598 addr->s6_addr[o] |= (pfx->s6_addr[o] & (0xff00 >> b)); in ipv6_addr_prefix_copy()
|
/linux-5.19.10/tools/testing/selftests/bpf/progs/ |
D | test_lwt_ip_encap.c | 67 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()
|
/linux-5.19.10/drivers/net/ethernet/netronome/nfp/flower/ |
D | match.c | 367 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-5.19.10/net/ipv6/ |
D | rpl.c | 18 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() 71 if (daddr->s6_addr[plen] != in ipv6_rpl_srh_calc_cmpri() 72 inhdr->rpl_segaddr[i].s6_addr[plen]) in ipv6_rpl_srh_calc_cmpri() 86 if (daddr->s6_addr[plen] != last_segment->s6_addr[plen]) in ipv6_rpl_srh_calc_cmpre()
|
/linux-5.19.10/drivers/net/ethernet/chelsio/cxgb4/ |
D | clip_tbl.c | 54 *(__be64 *)&c.ip_hi = *(__be64 *)(lip->s6_addr); in clip6_get_mbox() 55 *(__be64 *)&c.ip_lo = *(__be64 *)(lip->s6_addr + 8); in clip6_get_mbox() 69 *(__be64 *)&c.ip_hi = *(__be64 *)(lip->s6_addr); in clip6_release_mbox() 70 *(__be64 *)&c.ip_lo = *(__be64 *)(lip->s6_addr + 8); in clip6_release_mbox() 91 ret = memcmp(lip, cte->addr6.sin6_addr.s6_addr, in cxgb4_clip_get() 116 memcpy(ce->addr6.sin6_addr.s6_addr, in cxgb4_clip_get() 125 ret, ce->addr6.sin6_addr.s6_addr); in cxgb4_clip_get() 163 ret = memcmp(lip, cte->addr6.sin6_addr.s6_addr, in cxgb4_clip_release() 209 ret = cxgb4_clip_get(dev, (const u32 *)ifa->addr.s6_addr, 1); in cxgb4_update_dev_clip()
|
D | cxgb4_tc_flower.c | 221 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-5.19.10/include/rdma/ |
D | ib_addr.h | 144 memcpy(&out_in->sin6_addr.s6_addr, gid->raw, 16); in rdma_gid2ip() 231 memcpy(mac, &addr->s6_addr[8], 3); in rdma_get_ll_mac() 232 memcpy(mac + 3, &addr->s6_addr[13], 3); in rdma_get_ll_mac() 240 if (addr->s6_addr[0] == 0xff) in rdma_is_multicast_addr() 254 mac[i] = addr->s6_addr[i + 10]; in rdma_get_mcast_mac()
|
/linux-5.19.10/drivers/net/ethernet/chelsio/libcxgb/ |
D | libcxgb_cm.c | 66 __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-5.19.10/tools/hv/ |
D | hv_kvp_daemon.c | 780 str = inet_ntop(family, &addr6->sin6_addr.s6_addr, tmp, 50); in kvp_process_ip_address() 1022 (int)v6_addr.s6_addr[0], (int)v6_addr.s6_addr[1], in expand_ipv6() 1023 (int)v6_addr.s6_addr[2], (int)v6_addr.s6_addr[3], in expand_ipv6() 1024 (int)v6_addr.s6_addr[4], (int)v6_addr.s6_addr[5], in expand_ipv6() 1025 (int)v6_addr.s6_addr[6], (int)v6_addr.s6_addr[7], in expand_ipv6() 1026 (int)v6_addr.s6_addr[8], (int)v6_addr.s6_addr[9], in expand_ipv6() 1027 (int)v6_addr.s6_addr[10], (int)v6_addr.s6_addr[11], in expand_ipv6() 1028 (int)v6_addr.s6_addr[12], (int)v6_addr.s6_addr[13], in expand_ipv6() 1029 (int)v6_addr.s6_addr[14], (int)v6_addr.s6_addr[15]); in expand_ipv6()
|
/linux-5.19.10/drivers/net/ethernet/intel/ice/ |
D | ice_tc_lib.h | 64 #define dst_ipv6_addr ip.v6.dst_ip6.s6_addr 66 #define src_ipv6_addr ip.v6.src_ip6.s6_addr
|
D | ice_tc_lib.c | 740 memcpy(&l3_key->src_ipv6_addr, &match->key->src.s6_addr, in ice_tc_set_ipv6() 741 sizeof(match->key->src.s6_addr)); in ice_tc_set_ipv6() 742 memcpy(&l3_mask->src_ipv6_addr, &match->mask->src.s6_addr, in ice_tc_set_ipv6() 743 sizeof(match->mask->src.s6_addr)); in ice_tc_set_ipv6() 747 memcpy(&l3_key->dst_ipv6_addr, &match->key->dst.s6_addr, in ice_tc_set_ipv6() 748 sizeof(match->key->dst.s6_addr)); in ice_tc_set_ipv6() 749 memcpy(&l3_mask->dst_ipv6_addr, &match->mask->dst.s6_addr, in ice_tc_set_ipv6() 750 sizeof(match->mask->dst.s6_addr)); in ice_tc_set_ipv6()
|
/linux-5.19.10/arch/arm64/lib/ |
D | csum.c | 139 src = *(const __uint128_t *)saddr->s6_addr; in csum_ipv6_magic() 140 dst = *(const __uint128_t *)daddr->s6_addr; in csum_ipv6_magic()
|
/linux-5.19.10/tools/testing/selftests/net/ |
D | ipv6_flowlabel_mgr.c | 58 req.flr_dst.s6_addr[0] = 0xfd; in flowlabel_get() 59 req.flr_dst.s6_addr[15] = 0x1; in flowlabel_get()
|
D | ipv6_flowlabel.c | 157 req.flr_dst.s6_addr[0] = 0xfd; in flowlabel_get() 158 req.flr_dst.s6_addr[15] = 0x1; in flowlabel_get()
|
/linux-5.19.10/net/core/ |
D | utils.c | 330 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-5.19.10/drivers/infiniband/hw/cxgb4/ |
D | cm.c | 402 (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() 2209 laddr6->sin6_addr.s6_addr, in c4iw_reconnect() 2210 raddr6->sin6_addr.s6_addr, in c4iw_reconnect() [all …]
|
/linux-5.19.10/net/ipv6/netfilter/ |
D | ip6t_eui64.c | 41 if (!memcmp(ipv6_hdr(skb)->saddr.s6_addr + 8, eui64, in eui64_mt6()
|
/linux-5.19.10/security/ |
D | lsm_audit.c | 419 memset(&sbn_pfx.s6_addr, 0, in dump_common_audit_data() 420 sizeof(sbn_pfx.s6_addr)); in dump_common_audit_data() 421 memcpy(&sbn_pfx.s6_addr, &a->u.ibpkey->subnet_prefix, in dump_common_audit_data()
|
/linux-5.19.10/include/uapi/linux/ |
D | in6.h | 41 #define s6_addr in6_u.u6_addr8 macro
|
/linux-5.19.10/drivers/scsi/cxgbi/cxgb4i/ |
D | cxgb4i.c | 360 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 …]
|