Merge "PROX generator: performance optimization (2/4)"
[samplevnf.git] / VNFs / DPPD-PROX / handle_arp.c
index 106e19e..767cee1 100644 (file)
@@ -46,9 +46,7 @@ static void task_update_config(struct task_arp *task)
 
 static void handle_arp(struct task_arp *task, struct ether_hdr_arp *hdr, struct ether_addr *s_addr)
 {
-       prepare_arp_reply(hdr, s_addr);
-       memcpy(hdr->ether_hdr.d_addr.addr_bytes, hdr->ether_hdr.s_addr.addr_bytes, 6);
-       memcpy(hdr->ether_hdr.s_addr.addr_bytes, s_addr, 6);
+       build_arp_reply(hdr, s_addr);
 }
 
 static int handle_arp_bulk(struct task_base *tbase, struct rte_mbuf **mbufs, uint16_t n_pkts)