RTEMS CPU Kit with SuperCore  4.11.3
Data Structures | Macros
if_arp.h File Reference
#include <sys/socket.h>
Include dependency graph for if_arp.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  arphdr
 
struct  arpreq
 

Macros

#define ARPHRD_ETHER   1 /* ethernet hardware format */
 
#define ARPHRD_IEEE802   6 /* token-ring hardware format */
 
#define ARPHRD_ARCNET   7 /* arcnet hardware format */
 
#define ARPHRD_FRELAY   15 /* frame relay hardware format */
 
#define ARPHRD_IEEE1394   24 /* firewire hardware format */
 
#define ARPOP_REQUEST   1 /* request to resolve address */
 
#define ARPOP_REPLY   2 /* response to previous request */
 
#define ARPOP_REVREQUEST   3 /* request protocol address given hardware */
 
#define ARPOP_REVREPLY   4 /* response giving protocol address */
 
#define ARPOP_INVREQUEST   8 /* request to identify peer */
 
#define ARPOP_INVREPLY   9 /* response identifying peer */
 
#define ar_sha(ap)   (((caddr_t)((ap)+1)) + 0)
 
#define ar_spa(ap)   (((caddr_t)((ap)+1)) + (ap)->ar_hln)
 
#define ar_tha(ap)   (((caddr_t)((ap)+1)) + (ap)->ar_hln + (ap)->ar_pln)
 
#define ar_tpa(ap)   (((caddr_t)((ap)+1)) + 2*(ap)->ar_hln + (ap)->ar_pln)
 
#define arphdr_len2(ar_hln, ar_pln)   (sizeof(struct arphdr) + 2*(ar_hln) + 2*(ar_pln))
 
#define arphdr_len(ap)   (arphdr_len2((ap)->ar_hln, (ap)->ar_pln))
 
#define ATF_INUSE   0x01 /* entry in use */
 
#define ATF_COM   0x02 /* completed entry (enaddr valid) */
 
#define ATF_PERM   0x04 /* permanent entry */
 
#define ATF_PUBL   0x08 /* publish entry (respond for other host) */
 
#define ATF_USETRAILERS   0x10 /* has requested trailers */