@@ -530,15 +530,15 @@ dump_flow_pattern(struct ds *s,
530
530
if (!ipv6_mask ) {
531
531
ipv6_mask = & rte_flow_item_ipv6_mask ;
532
532
}
533
- memcpy (& addr , ipv6_spec -> hdr .src_addr , sizeof addr );
534
- memcpy (& mask , ipv6_mask -> hdr .src_addr , sizeof mask );
533
+ memcpy (& addr , & ipv6_spec -> hdr .src_addr , sizeof addr );
534
+ memcpy (& mask , & ipv6_mask -> hdr .src_addr , sizeof mask );
535
535
ipv6_string_mapped (addr_str , & addr );
536
536
ipv6_string_mapped (mask_str , & mask );
537
537
DUMP_PATTERN_ITEM (mask , false, "src" , "%s" ,
538
538
addr_str , mask_str , "" );
539
539
540
- memcpy (& addr , ipv6_spec -> hdr .dst_addr , sizeof addr );
541
- memcpy (& mask , ipv6_mask -> hdr .dst_addr , sizeof mask );
540
+ memcpy (& addr , & ipv6_spec -> hdr .dst_addr , sizeof addr );
541
+ memcpy (& mask , & ipv6_mask -> hdr .dst_addr , sizeof mask );
542
542
ipv6_string_mapped (addr_str , & addr );
543
543
ipv6_string_mapped (mask_str , & mask );
544
544
DUMP_PATTERN_ITEM (mask , false, "dst" , "%s" ,
@@ -695,10 +695,10 @@ dump_vxlan_encap(struct ds *s, const struct rte_flow_item *items)
695
695
struct in6_addr addr ;
696
696
697
697
ds_put_cstr (s , "ip-src " );
698
- memcpy (& addr , ipv6 -> hdr .src_addr , sizeof addr );
698
+ memcpy (& addr , & ipv6 -> hdr .src_addr , sizeof addr );
699
699
ipv6_format_mapped (& addr , s );
700
700
ds_put_cstr (s , " ip-dst " );
701
- memcpy (& addr , ipv6 -> hdr .dst_addr , sizeof addr );
701
+ memcpy (& addr , & ipv6 -> hdr .dst_addr , sizeof addr );
702
702
ipv6_format_mapped (& addr , s );
703
703
ds_put_cstr (s , " " );
704
704
}
@@ -834,7 +834,7 @@ dump_flow_action(struct ds *s, struct ds *s_extra,
834
834
struct in6_addr addr ;
835
835
836
836
ds_put_cstr (s , "ipv6_addr " );
837
- memcpy (& addr , set_ipv6 -> ipv6_addr , sizeof addr );
837
+ memcpy (& addr , & set_ipv6 -> ipv6_addr , sizeof addr );
838
838
ipv6_format_addr (& addr , s );
839
839
ds_put_cstr (s , " " );
840
840
}
@@ -1210,18 +1210,18 @@ parse_tnl_ip_match(struct flow_patterns *patterns,
1210
1210
spec -> hdr .hop_limits = match -> flow .tunnel .ip_ttl ;
1211
1211
spec -> hdr .vtc_flow = htonl ((uint32_t ) match -> flow .tunnel .ip_tos <<
1212
1212
RTE_IPV6_HDR_TC_SHIFT );
1213
- memcpy (spec -> hdr .src_addr , & match -> flow .tunnel .ipv6_src ,
1213
+ memcpy (& spec -> hdr .src_addr , & match -> flow .tunnel .ipv6_src ,
1214
1214
sizeof spec -> hdr .src_addr );
1215
- memcpy (spec -> hdr .dst_addr , & match -> flow .tunnel .ipv6_dst ,
1215
+ memcpy (& spec -> hdr .dst_addr , & match -> flow .tunnel .ipv6_dst ,
1216
1216
sizeof spec -> hdr .dst_addr );
1217
1217
1218
1218
mask -> hdr .proto = UINT8_MAX ;
1219
1219
mask -> hdr .hop_limits = match -> wc .masks .tunnel .ip_ttl ;
1220
1220
mask -> hdr .vtc_flow = htonl ((uint32_t ) match -> wc .masks .tunnel .ip_tos <<
1221
1221
RTE_IPV6_HDR_TC_SHIFT );
1222
- memcpy (mask -> hdr .src_addr , & match -> wc .masks .tunnel .ipv6_src ,
1222
+ memcpy (& mask -> hdr .src_addr , & match -> wc .masks .tunnel .ipv6_src ,
1223
1223
sizeof mask -> hdr .src_addr );
1224
- memcpy (mask -> hdr .dst_addr , & match -> wc .masks .tunnel .ipv6_dst ,
1224
+ memcpy (& mask -> hdr .dst_addr , & match -> wc .masks .tunnel .ipv6_dst ,
1225
1225
sizeof mask -> hdr .dst_addr );
1226
1226
1227
1227
consumed_masks -> tunnel .ip_tos = 0 ;
@@ -1532,9 +1532,9 @@ parse_flow_match(struct netdev *netdev,
1532
1532
spec -> hdr .hop_limits = match -> flow .nw_ttl ;
1533
1533
spec -> hdr .vtc_flow =
1534
1534
htonl ((uint32_t ) match -> flow .nw_tos << RTE_IPV6_HDR_TC_SHIFT );
1535
- memcpy (spec -> hdr .src_addr , & match -> flow .ipv6_src ,
1535
+ memcpy (& spec -> hdr .src_addr , & match -> flow .ipv6_src ,
1536
1536
sizeof spec -> hdr .src_addr );
1537
- memcpy (spec -> hdr .dst_addr , & match -> flow .ipv6_dst ,
1537
+ memcpy (& spec -> hdr .dst_addr , & match -> flow .ipv6_dst ,
1538
1538
sizeof spec -> hdr .dst_addr );
1539
1539
if ((match -> wc .masks .nw_frag & FLOW_NW_FRAG_ANY )
1540
1540
&& (match -> flow .nw_frag & FLOW_NW_FRAG_ANY )) {
@@ -1545,9 +1545,9 @@ parse_flow_match(struct netdev *netdev,
1545
1545
mask -> hdr .hop_limits = match -> wc .masks .nw_ttl ;
1546
1546
mask -> hdr .vtc_flow =
1547
1547
htonl ((uint32_t ) match -> wc .masks .nw_tos << RTE_IPV6_HDR_TC_SHIFT );
1548
- memcpy (mask -> hdr .src_addr , & match -> wc .masks .ipv6_src ,
1548
+ memcpy (& mask -> hdr .src_addr , & match -> wc .masks .ipv6_src ,
1549
1549
sizeof mask -> hdr .src_addr );
1550
- memcpy (mask -> hdr .dst_addr , & match -> wc .masks .ipv6_dst ,
1550
+ memcpy (& mask -> hdr .dst_addr , & match -> wc .masks .ipv6_dst ,
1551
1551
sizeof mask -> hdr .dst_addr );
1552
1552
1553
1553
consumed_masks -> nw_ttl = 0 ;
0 commit comments