X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=examples%2Fl3fwd%2Fl3fwd_em.h;h=e67f5f328c5bc133653529e2272b1d6be45a322c;hb=c4045f34557a5ce3de2b14e997fe41b122595e29;hp=b992a21da4d892daf2e49f9428f17c0b70978186;hpb=a434a02d5c1b5d61b7ade6a9b111e8f60b27b671;p=dpdk.git diff --git a/examples/l3fwd/l3fwd_em.h b/examples/l3fwd/l3fwd_em.h index b992a21da4..e67f5f328c 100644 --- a/examples/l3fwd/l3fwd_em.h +++ b/examples/l3fwd/l3fwd_em.h @@ -36,11 +36,11 @@ l3fwd_em_handle_ipv4(struct rte_mbuf *m, uint16_t portid, ++(ipv4_hdr->hdr_checksum); #endif /* dst addr */ - *(uint64_t *)ð_hdr->d_addr = dest_eth_addr[dst_port]; + *(uint64_t *)ð_hdr->dst_addr = dest_eth_addr[dst_port]; /* src addr */ rte_ether_addr_copy(&ports_eth_addr[dst_port], - ð_hdr->s_addr); + ð_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 *)ð_hdr->d_addr = dest_eth_addr[dst_port]; + *(uint64_t *)ð_hdr->dst_addr = dest_eth_addr[dst_port]; /* src addr */ rte_ether_addr_copy(&ports_eth_addr[dst_port], - ð_hdr->s_addr); + ð_hdr->src_addr); return dst_port; }