@@ -547,15 +547,15 @@ dump_flow_pattern(struct ds *s,
547
547
if (!ipv6_mask ) {
548
548
ipv6_mask = & rte_flow_item_ipv6_mask ;
549
549
}
550
- memcpy (& addr , ipv6_spec -> hdr .src_addr , sizeof addr );
551
- memcpy (& mask , ipv6_mask -> hdr .src_addr , sizeof mask );
550
+ memcpy (& addr , & ipv6_spec -> hdr .src_addr , sizeof addr );
551
+ memcpy (& mask , & ipv6_mask -> hdr .src_addr , sizeof mask );
552
552
ipv6_string_mapped (addr_str , & addr );
553
553
ipv6_string_mapped (mask_str , & mask );
554
554
DUMP_PATTERN_ITEM (mask , false, "src" , "%s" ,
555
555
addr_str , mask_str , "" );
556
556
557
- memcpy (& addr , ipv6_spec -> hdr .dst_addr , sizeof addr );
558
- memcpy (& mask , ipv6_mask -> hdr .dst_addr , sizeof mask );
557
+ memcpy (& addr , & ipv6_spec -> hdr .dst_addr , sizeof addr );
558
+ memcpy (& mask , & ipv6_mask -> hdr .dst_addr , sizeof mask );
559
559
ipv6_string_mapped (addr_str , & addr );
560
560
ipv6_string_mapped (mask_str , & mask );
561
561
DUMP_PATTERN_ITEM (mask , false, "dst" , "%s" ,
@@ -712,10 +712,10 @@ dump_vxlan_encap(struct ds *s, const struct rte_flow_item *items)
712
712
struct in6_addr addr ;
713
713
714
714
ds_put_cstr (s , "ip-src " );
715
- memcpy (& addr , ipv6 -> hdr .src_addr , sizeof addr );
715
+ memcpy (& addr , & ipv6 -> hdr .src_addr , sizeof addr );
716
716
ipv6_format_mapped (& addr , s );
717
717
ds_put_cstr (s , " ip-dst " );
718
- memcpy (& addr , ipv6 -> hdr .dst_addr , sizeof addr );
718
+ memcpy (& addr , & ipv6 -> hdr .dst_addr , sizeof addr );
719
719
ipv6_format_mapped (& addr , s );
720
720
ds_put_cstr (s , " " );
721
721
}
@@ -851,7 +851,7 @@ dump_flow_action(struct ds *s, struct ds *s_extra,
851
851
struct in6_addr addr ;
852
852
853
853
ds_put_cstr (s , "ipv6_addr " );
854
- memcpy (& addr , set_ipv6 -> ipv6_addr , sizeof addr );
854
+ memcpy (& addr , & set_ipv6 -> ipv6_addr , sizeof addr );
855
855
ipv6_format_addr (& addr , s );
856
856
ds_put_cstr (s , " " );
857
857
}
@@ -1227,18 +1227,18 @@ parse_tnl_ip_match(struct flow_patterns *patterns,
1227
1227
spec -> hdr .hop_limits = match -> flow .tunnel .ip_ttl ;
1228
1228
spec -> hdr .vtc_flow = htonl ((uint32_t ) match -> flow .tunnel .ip_tos <<
1229
1229
RTE_IPV6_HDR_TC_SHIFT );
1230
- memcpy (spec -> hdr .src_addr , & match -> flow .tunnel .ipv6_src ,
1230
+ memcpy (& spec -> hdr .src_addr , & match -> flow .tunnel .ipv6_src ,
1231
1231
sizeof spec -> hdr .src_addr );
1232
- memcpy (spec -> hdr .dst_addr , & match -> flow .tunnel .ipv6_dst ,
1232
+ memcpy (& spec -> hdr .dst_addr , & match -> flow .tunnel .ipv6_dst ,
1233
1233
sizeof spec -> hdr .dst_addr );
1234
1234
1235
1235
mask -> hdr .proto = UINT8_MAX ;
1236
1236
mask -> hdr .hop_limits = match -> wc .masks .tunnel .ip_ttl ;
1237
1237
mask -> hdr .vtc_flow = htonl ((uint32_t ) match -> wc .masks .tunnel .ip_tos <<
1238
1238
RTE_IPV6_HDR_TC_SHIFT );
1239
- memcpy (mask -> hdr .src_addr , & match -> wc .masks .tunnel .ipv6_src ,
1239
+ memcpy (& mask -> hdr .src_addr , & match -> wc .masks .tunnel .ipv6_src ,
1240
1240
sizeof mask -> hdr .src_addr );
1241
- memcpy (mask -> hdr .dst_addr , & match -> wc .masks .tunnel .ipv6_dst ,
1241
+ memcpy (& mask -> hdr .dst_addr , & match -> wc .masks .tunnel .ipv6_dst ,
1242
1242
sizeof mask -> hdr .dst_addr );
1243
1243
1244
1244
consumed_masks -> tunnel .ip_tos = 0 ;
@@ -1549,9 +1549,9 @@ parse_flow_match(struct netdev *netdev,
1549
1549
spec -> hdr .hop_limits = match -> flow .nw_ttl ;
1550
1550
spec -> hdr .vtc_flow =
1551
1551
htonl ((uint32_t ) match -> flow .nw_tos << RTE_IPV6_HDR_TC_SHIFT );
1552
- memcpy (spec -> hdr .src_addr , & match -> flow .ipv6_src ,
1552
+ memcpy (& spec -> hdr .src_addr , & match -> flow .ipv6_src ,
1553
1553
sizeof spec -> hdr .src_addr );
1554
- memcpy (spec -> hdr .dst_addr , & match -> flow .ipv6_dst ,
1554
+ memcpy (& spec -> hdr .dst_addr , & match -> flow .ipv6_dst ,
1555
1555
sizeof spec -> hdr .dst_addr );
1556
1556
if ((match -> wc .masks .nw_frag & FLOW_NW_FRAG_ANY )
1557
1557
&& (match -> flow .nw_frag & FLOW_NW_FRAG_ANY )) {
@@ -1562,9 +1562,9 @@ parse_flow_match(struct netdev *netdev,
1562
1562
mask -> hdr .hop_limits = match -> wc .masks .nw_ttl ;
1563
1563
mask -> hdr .vtc_flow =
1564
1564
htonl ((uint32_t ) match -> wc .masks .nw_tos << RTE_IPV6_HDR_TC_SHIFT );
1565
- memcpy (mask -> hdr .src_addr , & match -> wc .masks .ipv6_src ,
1565
+ memcpy (& mask -> hdr .src_addr , & match -> wc .masks .ipv6_src ,
1566
1566
sizeof mask -> hdr .src_addr );
1567
- memcpy (mask -> hdr .dst_addr , & match -> wc .masks .ipv6_dst ,
1567
+ memcpy (& mask -> hdr .dst_addr , & match -> wc .masks .ipv6_dst ,
1568
1568
sizeof mask -> hdr .dst_addr );
1569
1569
1570
1570
consumed_masks -> nw_ttl = 0 ;
0 commit comments