/linux/net/6lowpan/ |
A D | iphc.c | 355 ipaddr->s6_addr, 16); in lowpan_iphc_uncompress_addr() 418 ipaddr->s6_addr, 16); in lowpan_iphc_uncompress_ctx_addr() 474 ipaddr->s6_addr, 16); in lowpan_uncompress_multicast_daddr() 806 tmp.s6_addr[8] ^= 0x02; in lowpan_iphc_compress_ctx_802154_lladdr() 813 tmp.s6_addr[11] = 0xFF; in lowpan_iphc_compress_ctx_802154_lladdr() 872 tmp.s6_addr[11] = 0xFF; in lowpan_compress_ctx_addr() 873 tmp.s6_addr[12] = 0xFE; in lowpan_compress_ctx_addr() 874 memcpy(&tmp.s6_addr[14], &ipaddr->s6_addr[14], 2); in lowpan_compress_ctx_addr() 885 memcpy(&tmp.s6_addr[8], &ipaddr->s6_addr[8], 8); in lowpan_compress_ctx_addr() 926 tmp.s6_addr[0] = 0xFE; in lowpan_iphc_compress_802154_lladdr() [all …]
|
/linux/drivers/net/ethernet/mellanox/mlxsw/ |
A D | spectrum2_mr_tcam.c | 158 &key->source.addr6.s6_addr[0x0], in mlxsw_sp2_mr_tcam_rule_parse6() 161 &key->source.addr6.s6_addr[0x4], in mlxsw_sp2_mr_tcam_rule_parse6() 164 &key->source.addr6.s6_addr[0x8], in mlxsw_sp2_mr_tcam_rule_parse6() 167 &key->source.addr6.s6_addr[0xc], 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() 173 &key->group.addr6.s6_addr[0x4], in mlxsw_sp2_mr_tcam_rule_parse6() 174 &key->group_mask.addr6.s6_addr[0x4], 4); in mlxsw_sp2_mr_tcam_rule_parse6() 176 &key->group.addr6.s6_addr[0x8], in mlxsw_sp2_mr_tcam_rule_parse6() 177 &key->group_mask.addr6.s6_addr[0x8], 4); in mlxsw_sp2_mr_tcam_rule_parse6() [all …]
|
A D | spectrum_flower.c | 305 &match.key->src.s6_addr[0x0], in mlxsw_sp_flower_parse_ipv6() 306 &match.mask->src.s6_addr[0x0], 4); in mlxsw_sp_flower_parse_ipv6() 308 &match.key->src.s6_addr[0x4], in mlxsw_sp_flower_parse_ipv6() 309 &match.mask->src.s6_addr[0x4], 4); in mlxsw_sp_flower_parse_ipv6() 311 &match.key->src.s6_addr[0x8], in mlxsw_sp_flower_parse_ipv6() 312 &match.mask->src.s6_addr[0x8], 4); in mlxsw_sp_flower_parse_ipv6() 314 &match.key->src.s6_addr[0xC], in mlxsw_sp_flower_parse_ipv6() 317 &match.key->dst.s6_addr[0x0], in mlxsw_sp_flower_parse_ipv6() 320 &match.key->dst.s6_addr[0x4], in mlxsw_sp_flower_parse_ipv6() 323 &match.key->dst.s6_addr[0x8], in mlxsw_sp_flower_parse_ipv6() [all …]
|
/linux/include/net/ |
A 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()
|
A D | ipv6.h | 123 ((a)->s6_addr[1] & 0x0f) /* nonstandard */ 135 ((a)->s6_addr[1] & 0x10) 137 ((a)->s6_addr[1] & 0x20) 139 ((a)->s6_addr[1] & 0x40) 524 memset(pfx->s6_addr, 0, sizeof(pfx->s6_addr)); in ipv6_addr_prefix() 525 memcpy(pfx->s6_addr, addr, o); in ipv6_addr_prefix() 527 pfx->s6_addr[o] = addr->s6_addr[o] & (0xff00 >> b); in ipv6_addr_prefix() 538 memcpy(addr->s6_addr, pfx, o); in ipv6_addr_prefix_copy() 540 addr->s6_addr[o] &= ~(0xff00 >> b); in ipv6_addr_prefix_copy() 541 addr->s6_addr[o] |= (pfx->s6_addr[o] & (0xff00 >> b)); in ipv6_addr_prefix_copy()
|
/linux/tools/testing/selftests/bpf/progs/ |
A 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/drivers/net/ethernet/netronome/nfp/flower/ |
A D | match.c | 349 ext->ipv6_src.s6_addr[i] |= match.key->src.s6_addr[i] & in nfp_flower_compile_ipv6() 350 match.mask->src.s6_addr[i]; in nfp_flower_compile_ipv6() 351 ext->ipv6_dst.s6_addr[i] |= match.key->dst.s6_addr[i] & in nfp_flower_compile_ipv6() 352 match.mask->dst.s6_addr[i]; in nfp_flower_compile_ipv6() 353 msk->ipv6_src.s6_addr[i] |= match.mask->src.s6_addr[i]; in nfp_flower_compile_ipv6() 354 msk->ipv6_dst.s6_addr[i] |= match.mask->dst.s6_addr[i]; in nfp_flower_compile_ipv6() 404 ext->src.s6_addr[i] |= match.key->src.s6_addr[i] & in nfp_flower_compile_tun_ipv6_addrs() 405 match.mask->src.s6_addr[i]; in nfp_flower_compile_tun_ipv6_addrs() 406 ext->dst.s6_addr[i] |= match.key->dst.s6_addr[i] & in nfp_flower_compile_tun_ipv6_addrs() 408 msk->src.s6_addr[i] |= match.mask->src.s6_addr[i]; in nfp_flower_compile_tun_ipv6_addrs() [all …]
|
/linux/net/ipv6/ |
A 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/drivers/net/ethernet/chelsio/cxgb4/ |
A 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()
|
A 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/include/rdma/ |
A 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/tools/hv/ |
A 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/drivers/net/ethernet/chelsio/libcxgb/ |
A D | libcxgb_cm.c | 65 __func__, ip6->saddr.s6_addr, ip6->daddr.s6_addr, in cxgb_get_4tuple() 68 memcpy(peer_ip, ip6->saddr.s6_addr, 16); in cxgb_get_4tuple() 69 memcpy(local_ip, ip6->daddr.s6_addr, 16); in cxgb_get_4tuple()
|
/linux/drivers/net/ethernet/intel/ice/ |
A D | ice_tc_lib.h | 63 #define dst_ipv6_addr ip.v6.dst_ip6.s6_addr 65 #define src_ipv6_addr ip.v6.src_ip6.s6_addr
|
A D | ice_tc_lib.c | 681 memcpy(&l3_key->src_ipv6_addr, &match->key->src.s6_addr, in ice_tc_set_ipv6() 682 sizeof(match->key->src.s6_addr)); in ice_tc_set_ipv6() 683 memcpy(&l3_mask->src_ipv6_addr, &match->mask->src.s6_addr, in ice_tc_set_ipv6() 684 sizeof(match->mask->src.s6_addr)); in ice_tc_set_ipv6() 688 memcpy(&l3_key->dst_ipv6_addr, &match->key->dst.s6_addr, in ice_tc_set_ipv6() 689 sizeof(match->key->dst.s6_addr)); in ice_tc_set_ipv6() 690 memcpy(&l3_mask->dst_ipv6_addr, &match->mask->dst.s6_addr, in ice_tc_set_ipv6() 691 sizeof(match->mask->dst.s6_addr)); in ice_tc_set_ipv6()
|
/linux/arch/arm64/lib/ |
A 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/drivers/infiniband/hw/cxgb4/ |
A D | cm.c | 402 (const u32 *)&sin6->sin6_addr.s6_addr, in _c4iw_free_ep() 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() 2329 &sin6->sin6_addr.s6_addr, 1); in act_open_rpl() 2954 (const u32 *)&sin6->sin6_addr.s6_addr, in peer_abort() 3290 memcpy(la6->sin6_addr.s6_addr, &addr, 16); in pick_local_ip6addrs() 3291 memcpy(ra6->sin6_addr.s6_addr, &addr, 16); in pick_local_ip6addrs() 3412 laddr6->sin6_addr.s6_addr, in c4iw_connect() 3416 laddr6->sin6_addr.s6_addr, in c4iw_connect() [all …]
|
/linux/tools/testing/selftests/net/ |
A 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()
|
A 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/net/core/ |
A 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/security/ |
A 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/net/ipv6/netfilter/ |
A D | ip6t_eui64.c | 41 if (!memcmp(ipv6_hdr(skb)->saddr.s6_addr + 8, eui64, in eui64_mt6()
|
/linux/drivers/scsi/cxgbi/cxgb4i/ |
A D | cxgb4i.c | 359 req->local_ip_hi = *(__be64 *)(csk->saddr6.sin6_addr.s6_addr); in send_act_open_req6() 360 req->local_ip_lo = *(__be64 *)(csk->saddr6.sin6_addr.s6_addr + in send_act_open_req6() 362 req->peer_ip_hi = *(__be64 *)(csk->daddr6.sin6_addr.s6_addr); in send_act_open_req6() 363 req->peer_ip_lo = *(__be64 *)(csk->daddr6.sin6_addr.s6_addr + in send_act_open_req6() 383 req->local_ip_hi = *(__be64 *)(csk->saddr6.sin6_addr.s6_addr); in send_act_open_req6() 384 req->local_ip_lo = *(__be64 *)(csk->saddr6.sin6_addr.s6_addr + in send_act_open_req6() 386 req->peer_ip_hi = *(__be64 *)(csk->daddr6.sin6_addr.s6_addr); in send_act_open_req6() 387 req->peer_ip_lo = *(__be64 *)(csk->daddr6.sin6_addr.s6_addr + in send_act_open_req6() 406 req->local_ip_hi = *(__be64 *)(csk->saddr6.sin6_addr.s6_addr); in send_act_open_req6() 409 req->peer_ip_hi = *(__be64 *)(csk->daddr6.sin6_addr.s6_addr); in send_act_open_req6() [all …]
|
/linux/drivers/target/iscsi/cxgbit/ |
A D | cxgbit_cm.c | 159 (const u32 *)&sin6->sin6_addr.s6_addr, 1); in cxgbit_create_server6() 162 sin6->sin6_addr.s6_addr, ret); in cxgbit_create_server6() 185 (const u32 *)&sin6->sin6_addr.s6_addr, 1); in cxgbit_create_server6() 188 ret, stid, sin6->sin6_addr.s6_addr, in cxgbit_create_server6() 555 (const u32 *)&sin6->sin6_addr.s6_addr, in __cxgbit_free_cdev_np() 807 &sin6->sin6_addr.s6_addr, 1); in _cxgbit_free_csk() 1345 memcpy(sin6->sin6_addr.s6_addr, local_ip, 16); in cxgbit_pass_accept_req() 1347 (const u32 *)&sin6->sin6_addr.s6_addr, in cxgbit_pass_accept_req() 1353 memcpy(sin6->sin6_addr.s6_addr, peer_ip, 16); in cxgbit_pass_accept_req()
|
/linux/include/uapi/linux/ |
A D | in6.h | 41 #define s6_addr in6_u.u6_addr8 macro
|