]> git.droids-corp.org - dpdk.git/blobdiff - examples/l3fwd/l3fwd_em.h
app/testpmd: add command to print representor info
[dpdk.git] / examples / l3fwd / l3fwd_em.h
index b992a21da4d892daf2e49f9428f17c0b70978186..e67f5f328c5bc133653529e2272b1d6be45a322c 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;
 }