]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_net/rte_arp.h
net: fix RARP generation
[dpdk.git] / lib / librte_net / rte_arp.h
index dad7423ad335a7d3779654e96cad938660295924..457a39b152cb40a087caa91bbecb0abf008de57f 100644 (file)
@@ -82,16 +82,17 @@ struct arp_hdr {
  *
  * Make a RARP packet based on MAC addr.
  *
- * @param mbuf
- *   Pointer to the rte_mbuf structure
+ * @param mpool
+ *   Pointer to the rte_mempool
  * @param mac
  *   Pointer to the MAC addr
  *
  * @return
- *   - 0 on success, negative on error
+ *   - RARP packet pointer on success, or NULL on error
  */
-int
-rte_net_make_rarp_packet(struct rte_mbuf *mbuf, const struct ether_addr *mac);
+struct rte_mbuf *
+rte_net_make_rarp_packet(struct rte_mempool *mpool,
+               const struct ether_addr *mac);
 
 #ifdef __cplusplus
 }