#define RARP_PKT_SIZE 64
struct rte_mbuf * __rte_experimental
rte_net_make_rarp_packet(struct rte_mempool *mpool,
- const struct ether_addr *mac)
+ const struct rte_ether_addr *mac)
{
- struct ether_hdr *eth_hdr;
+ struct rte_ether_hdr *eth_hdr;
struct rte_arp_hdr *rarp;
struct rte_mbuf *mbuf;
if (mbuf == NULL)
return NULL;
- eth_hdr = (struct ether_hdr *)rte_pktmbuf_append(mbuf, RARP_PKT_SIZE);
+ eth_hdr = (struct rte_ether_hdr *)
+ rte_pktmbuf_append(mbuf, RARP_PKT_SIZE);
if (eth_hdr == NULL) {
rte_pktmbuf_free(mbuf);
return NULL;
/* RARP header. */
rarp = (struct rte_arp_hdr *)(eth_hdr + 1);
- rarp->arp_hardware = htons(ARP_HRD_ETHER);
+ rarp->arp_hardware = htons(RTE_ARP_HRD_ETHER);
rarp->arp_protocol = htons(ETHER_TYPE_IPv4);
rarp->arp_hlen = ETHER_ADDR_LEN;
rarp->arp_plen = 4;
- rarp->arp_opcode = htons(ARP_OP_REVREQUEST);
+ rarp->arp_opcode = htons(RTE_ARP_OP_REVREQUEST);
ether_addr_copy(mac, &rarp->arp_data.arp_sha);
ether_addr_copy(mac, &rarp->arp_data.arp_tha);