]> git.droids-corp.org - dpdk.git/blobdiff - app/test-pmd/5tswap.c
net/bnxt: fix null dereference in session cleanup
[dpdk.git] / app / test-pmd / 5tswap.c
index e8cef9623b23ce3ddb4a0df16d21997b5c21aa43..629d3e0d3176fcc6560ad4fcf294212d7928b630 100644 (file)
@@ -27,9 +27,9 @@ swap_mac(struct rte_ether_hdr *eth_hdr)
        struct rte_ether_addr addr;
 
        /* Swap dest and src mac addresses. */
-       rte_ether_addr_copy(&eth_hdr->d_addr, &addr);
-       rte_ether_addr_copy(&eth_hdr->s_addr, &eth_hdr->d_addr);
-       rte_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);
 }
 
 static inline void