david/ipxe
Archived
1
0
This repository has been archived on 2020-12-06. You can view files and clone it, but cannot push or open issues or pull requests.
ipxe/src/include/gpxe/arp.h

39 lines
824 B
C
Raw Normal View History

#ifndef _GPXE_ARP_H
#define _GPXE_ARP_H
2006-04-19 03:42:03 +02:00
/** @file
*
* Address Resolution Protocol
*
*/
#include <gpxe/tables.h>
struct net_device;
2006-06-16 02:19:46 +02:00
struct net_protocol;
2006-04-19 03:42:03 +02:00
/** A network-layer protocol that relies upon ARP */
struct arp_net_protocol {
/** Network-layer protocol */
struct net_protocol *net_protocol;
/** Check existence of address
*
* @v netdev Network device
* @v net_addr Network-layer address
* @ret rc Return status code
*/
int ( * check ) ( struct net_device *netdev,
const void *net_addr );
};
/** Declare an ARP protocol */
#define __arp_net_protocol __table ( arp_net_protocols, 01 )
extern int arp_resolve ( struct net_device *netdev,
2006-06-16 02:19:46 +02:00
struct net_protocol *net_protocol,
const void *dest_net_addr,
const void *source_net_addr,
void *dest_ll_addr );
2006-04-19 03:42:03 +02:00
#endif /* _GPXE_ARP_H */