/linux/net/6lowpan/ |
H 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/ |
H A D | spectrum2_mr_tcam.c | 167 &key->source.addr6.s6_addr[0x0], in mlxsw_sp2_mr_tcam_rule_parse6() 170 &key->source.addr6.s6_addr[0x4], in mlxsw_sp2_mr_tcam_rule_parse6() 173 &key->source.addr6.s6_addr[0x8], in mlxsw_sp2_mr_tcam_rule_parse6() 176 &key->source.addr6.s6_addr[0xc], 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() 182 &key->group.addr6.s6_addr[0x4], in mlxsw_sp2_mr_tcam_rule_parse6() 183 &key->group_mask.addr6.s6_addr[0x4], 4); in mlxsw_sp2_mr_tcam_rule_parse6() 185 &key->group.addr6.s6_addr[0x8], in mlxsw_sp2_mr_tcam_rule_parse6() 186 &key->group_mask.addr6.s6_addr[0x8], 4); in mlxsw_sp2_mr_tcam_rule_parse6() [all …]
|
H A D | spectrum_flower.c | 379 &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() 391 &match.key->dst.s6_addr[0x0], in mlxsw_sp_flower_parse_ipv6() 394 &match.key->dst.s6_addr[0x4], in mlxsw_sp_flower_parse_ipv6() 397 &match.key->dst.s6_addr[0x8], in mlxsw_sp_flower_parse_ipv6() [all …]
|
/linux/include/net/ |
H 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()
|
H A 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) 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 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()
|
H A D | test_tc_tunnel.c | 406 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/net/ipv6/ |
H 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() 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/drivers/net/ethernet/netronome/nfp/flower/ |
H A 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() 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() 377 msk->ipv6_dst.s6_addr[i] |= match.mask->dst.s6_addr[i]; in nfp_flower_compile_ipv6() 427 ext->src.s6_addr[i] |= match.key->src.s6_addr[i] & in nfp_flower_compile_tun_ipv6_addrs() 429 ext->dst.s6_addr[i] |= match.key->dst.s6_addr[i] & in nfp_flower_compile_tun_ipv6_addrs() 431 msk->src.s6_addr[i] |= match.mask->src.s6_addr[i]; in nfp_flower_compile_tun_ipv6_addrs() [all …]
|
/linux/drivers/net/ethernet/chelsio/cxgb4/ |
H 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()
|
H 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/ |
H A D | ib_addr.h | 144 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 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/tools/hv/ |
H A D | hv_kvp_daemon.c | 791 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 D | csum.c | 127 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 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/net/ethernet/microchip/vcap/ |
H A D | vcap_tc.c | 111 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/tools/testing/selftests/net/ |
H 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()
|
H A D | ipv6_flowlabel.c | 185 req.flr_dst.s6_addr[0] = 0xfd; in flowlabel_get() 186 req.flr_dst.s6_addr[15] = 0x1; in flowlabel_get()
|
/linux/drivers/net/ethernet/intel/ice/ |
H A D | ice_tc_lib.h | 100 #define dst_ipv6_addr ip.v6.dst_ip6.s6_addr 102 #define src_ipv6_addr ip.v6.src_ip6.s6_addr
|
/linux/net/core/ |
H 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/drivers/infiniband/hw/cxgb4/ |
H 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() 2213 laddr6->sin6_addr.s6_addr, in c4iw_reconnect() 2214 raddr6->sin6_addr.s6_addr, in c4iw_reconnect() 2336 &sin6->sin6_addr.s6_addr, 1); in act_open_rpl() 2958 (const u32 *)&sin6->sin6_addr.s6_addr, in peer_abort() 3294 memcpy(la6->sin6_addr.s6_addr, &addr, 16); in pick_local_ip6addrs() 3295 memcpy(ra6->sin6_addr.s6_addr, &addr, 16); in pick_local_ip6addrs() 3416 laddr6->sin6_addr.s6_addr, in c4iw_connect() 3420 laddr6->sin6_addr.s6_addr, in c4iw_connect() [all …]
|
/linux/net/ipv6/netfilter/ |
H A D | ip6t_eui64.c | 41 if (!memcmp(ipv6_hdr(skb)->saddr.s6_addr + 8, eui64, in eui64_mt6()
|
/linux/security/ |
H A D | lsm_audit.c | 408 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/include/uapi/linux/ |
H A D | in6.h | 41 #define s6_addr in6_u.u6_addr8 macro
|