18 #include <net/ethernet.h>
28 #define RARP_PKT_SIZE 64
55 if (eth_hdr == NULL) {
67 rarp->arp_hardware = htons(CNE_ARP_HRD_ETHER);
69 rarp->arp_hlen = ETH_ALEN;
71 rarp->arp_opcode = htons(CNE_ARP_OP_REVREQUEST);
75 memset(&rarp->arp_data.
arp_sip, 0x00, 4);
76 memset(&rarp->arp_data.
arp_tip, 0x00, 4);
#define CNE_ETHER_TYPE_RARP
#define CNE_ETHER_TYPE_IPV4
CNDP_API __cne_always_inline void ether_addr_copy(const struct ether_addr *ea_from, struct ether_addr *ea_to)
static pktmbuf_t * cne_net_make_rarp_packet(pktmbuf_info_t *pi, const struct ether_addr *mac)
static __cne_always_inline void pktmbuf_free(pktmbuf_t *m)
static pktmbuf_t * pktmbuf_alloc(pktmbuf_info_t *pi)
static char * pktmbuf_append(pktmbuf_t *m, uint16_t len)
struct ether_addr arp_tha
struct ether_addr arp_sha
uint8_t ether_addr_octet[ETH_ALEN]