]> git.droids-corp.org - dpdk.git/blobdiff - app/test-pmd/macswap.h
app/testpmd: add 6 types of L2TPv2 message
[dpdk.git] / app / test-pmd / macswap.h
index d53e5d482f191965fd60d0f91f0a2043ed3fe79f..29c252bb8ff619a1c5e9a469e6552791adff27b1 100644 (file)
@@ -29,9 +29,9 @@ do_macswap(struct rte_mbuf *pkts[], uint16_t nb,
                eth_hdr = rte_pktmbuf_mtod(mb, struct rte_ether_hdr *);
 
                /* Swap dest and src mac addresses. */
-               ether_addr_copy(&eth_hdr->d_addr, &addr);
-               ether_addr_copy(&eth_hdr->s_addr, &eth_hdr->d_addr);
-               ether_addr_copy(&addr, &eth_hdr->s_addr);
+               rte_ether_addr_copy(&eth_hdr->dst_addr, &addr);
+               rte_ether_addr_copy(&eth_hdr->src_addr, &eth_hdr->dst_addr);
+               rte_ether_addr_copy(&addr, &eth_hdr->src_addr);
 
                mbuf_field_set(mb, ol_flags);
        }