X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=lib%2Flibrte_net%2Frte_arp.h;h=dad7423ad335a7d3779654e96cad938660295924;hb=45ae05df824c;hp=183641874bc77bb224d8f91d190bff704268668d;hpb=1978a9dc57f0e9bd83c64c31ec99a8869ab5a133;p=dpdk.git diff --git a/lib/librte_net/rte_arp.h b/lib/librte_net/rte_arp.h index 183641874b..dad7423ad3 100644 --- a/lib/librte_net/rte_arp.h +++ b/lib/librte_net/rte_arp.h @@ -76,6 +76,23 @@ struct arp_hdr { struct arp_ipv4 arp_data; } __attribute__((__packed__)); +/** + * @warning + * @b EXPERIMENTAL: this API may change without prior notice + * + * Make a RARP packet based on MAC addr. + * + * @param mbuf + * Pointer to the rte_mbuf structure + * @param mac + * Pointer to the MAC addr + * + * @return + * - 0 on success, negative on error + */ +int +rte_net_make_rarp_packet(struct rte_mbuf *mbuf, const struct ether_addr *mac); + #ifdef __cplusplus } #endif