git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net: add rte prefix to ether structures
[dpdk.git]
/
lib
/
librte_net
/
rte_arp.c
diff --git
a/lib/librte_net/rte_arp.c
b/lib/librte_net/rte_arp.c
index
c80ebc7
..
adda9f7
100644
(file)
--- a/
lib/librte_net/rte_arp.c
+++ b/
lib/librte_net/rte_arp.c
@@
-9,9
+9,9
@@
#define RARP_PKT_SIZE 64
struct rte_mbuf * __rte_experimental
rte_net_make_rarp_packet(struct rte_mempool *mpool,
#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;
struct rte_arp_hdr *rarp;
struct rte_mbuf *mbuf;
@@
-22,7
+22,8
@@
rte_net_make_rarp_packet(struct rte_mempool *mpool,
if (mbuf == NULL)
return NULL;
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;
if (eth_hdr == NULL) {
rte_pktmbuf_free(mbuf);
return NULL;
@@
-35,11
+36,11
@@
rte_net_make_rarp_packet(struct rte_mempool *mpool,
/* RARP header. */
rarp = (struct rte_arp_hdr *)(eth_hdr + 1);
/* 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_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);
ether_addr_copy(mac, &rarp->arp_data.arp_sha);
ether_addr_copy(mac, &rarp->arp_data.arp_tha);