app/testpmd: add command to print representor info
[dpdk.git] / examples / l3fwd / l3fwd_em.h
index b992a21..e67f5f3 100644 (file)
@@ -36,11 +36,11 @@ l3fwd_em_handle_ipv4(struct rte_mbuf *m, uint16_t portid,
        ++(ipv4_hdr->hdr_checksum);
 #endif
        /* dst addr */
-       *(uint64_t *)&eth_hdr->d_addr = dest_eth_addr[dst_port];
+       *(uint64_t *)&eth_hdr->dst_addr = dest_eth_addr[dst_port];
 
        /* src addr */
        rte_ether_addr_copy(&ports_eth_addr[dst_port],
-                       &eth_hdr->s_addr);
+                       &eth_hdr->src_addr);
 
        return dst_port;
 }
@@ -64,11 +64,11 @@ l3fwd_em_handle_ipv6(struct rte_mbuf *m, uint16_t portid,
                dst_port = portid;
 
        /* dst addr */
-       *(uint64_t *)&eth_hdr->d_addr = dest_eth_addr[dst_port];
+       *(uint64_t *)&eth_hdr->dst_addr = dest_eth_addr[dst_port];
 
        /* src addr */
        rte_ether_addr_copy(&ports_eth_addr[dst_port],
-                       &eth_hdr->s_addr);
+                       &eth_hdr->src_addr);
 
        return dst_port;
 }