Back to index

glibc  2.9
Classes | Defines | Variables
if_arp.h File Reference
#include <sys/cdefs.h>
#include <sys/types.h>
#include <sys/socket.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  arphdr
struct  arpreq
struct  arpreq_old
struct  arpd_request

Defines

#define MAX_ADDR_LEN   7
#define ARPOP_REQUEST   1 /* ARP request. */
#define ARPOP_REPLY   2 /* ARP reply. */
#define ARPOP_RREQUEST   3 /* RARP request. */
#define ARPOP_RREPLY   4 /* RARP reply. */
#define ARPOP_InREQUEST   8 /* InARP request. */
#define ARPOP_InREPLY   9 /* InARP reply. */
#define ARPOP_NAK   10 /* (ATM)ARP NAK. */
#define ARPHRD_NETROM   0 /* From KA9Q: NET/ROM pseudo. */
#define ARPHRD_ETHER   1 /* Ethernet 10/100Mbps. */
#define ARPHRD_EETHER   2 /* Experimental Ethernet. */
#define ARPHRD_AX25   3 /* AX.25 Level 2. */
#define ARPHRD_PRONET   4 /* PROnet token ring. */
#define ARPHRD_CHAOS   5 /* Chaosnet. */
#define ARPHRD_IEEE802   6 /* IEEE 802.2 Ethernet/TR/TB. */
#define ARPHRD_ARCNET   7 /* ARCnet. */
#define ARPHRD_APPLETLK   8 /* APPLEtalk. */
#define ARPHRD_DLCI   15 /* Frame Relay DLCI. */
#define ARPHRD_ATM   19 /* ATM. */
#define ARPHRD_METRICOM   23 /* Metricom STRIP (new IANA id). */
#define ARPHRD_IEEE1394   24 /* IEEE 1394 IPv4 - RFC 2734. */
#define ARPHRD_EUI64   27 /* EUI-64. */
#define ARPHRD_INFINIBAND   32 /* InfiniBand. */
#define ARPHRD_SLIP   256
#define ARPHRD_CSLIP   257
#define ARPHRD_SLIP6   258
#define ARPHRD_CSLIP6   259
#define ARPHRD_RSRVD   260 /* Notional KISS type. */
#define ARPHRD_ADAPT   264
#define ARPHRD_ROSE   270
#define ARPHRD_X25   271 /* CCITT X.25. */
#define ARPHRD_HWX25   272 /* Boards with X.25 in firmware. */
#define ARPHRD_PPP   512
#define ARPHRD_CISCO   513 /* Cisco HDLC. */
#define ARPHRD_HDLC   ARPHRD_CISCO
#define ARPHRD_LAPB   516 /* LAPB. */
#define ARPHRD_DDCMP   517 /* Digital's DDCMP. */
#define ARPHRD_RAWHDLC   518 /* Raw HDLC. */
#define ARPHRD_TUNNEL   768 /* IPIP tunnel. */
#define ARPHRD_TUNNEL6   769 /* IPIP6 tunnel. */
#define ARPHRD_FRAD   770 /* Frame Relay Access Device. */
#define ARPHRD_SKIP   771 /* SKIP vif. */
#define ARPHRD_LOOPBACK   772 /* Loopback device. */
#define ARPHRD_LOCALTLK   773 /* Localtalk device. */
#define ARPHRD_FDDI   774 /* Fiber Distributed Data Interface. */
#define ARPHRD_BIF   775 /* AP1000 BIF. */
#define ARPHRD_SIT   776 /* sit0 device - IPv6-in-IPv4. */
#define ARPHRD_IPDDP   777 /* IP-in-DDP tunnel. */
#define ARPHRD_IPGRE   778 /* GRE over IP. */
#define ARPHRD_PIMREG   779 /* PIMSM register interface. */
#define ARPHRD_HIPPI   780 /* High Performance Parallel I'face. */
#define ARPHRD_ASH   781 /* (Nexus Electronics) Ash. */
#define ARPHRD_ECONET   782 /* Acorn Econet. */
#define ARPHRD_IRDA   783 /* Linux-IrDA. */
#define ARPHRD_FCPP   784 /* Point to point fibrechanel. */
#define ARPHRD_FCAL   785 /* Fibrechanel arbitrated loop. */
#define ARPHRD_FCPL   786 /* Fibrechanel public loop. */
#define ARPHRD_FCFABRIC   787 /* Fibrechanel fabric. */
#define ARPHRD_IEEE802_TR   800 /* Magic type ident for TR. */
#define ARPHRD_IEEE80211   801 /* IEEE 802.11. */
#define ARPHRD_IEEE80211_PRISM   802 /* IEEE 802.11 + Prism2 header. */
#define ARPHRD_IEEE80211_RADIOTAP   803 /* IEEE 802.11 + radiotap header. */
#define ARPHRD_VOID   0xFFFF /* Void type, nothing is known. */
#define ARPHRD_NONE   0xFFFE /* Zero header length. */
#define ATF_COM   0x02 /* Completed entry (ha valid). */
#define ATF_PERM   0x04 /* Permanent entry. */
#define ATF_PUBL   0x08 /* Publish entry. */
#define ATF_USETRAILERS   0x10 /* Has requested trailers. */
#define ATF_NETMASK
#define ATF_DONTPUB   0x40 /* Don't answer this addresses. */
#define ATF_MAGIC   0x80 /* Automatically added entry. */
#define ARPD_UPDATE   0x01
#define ARPD_LOOKUP   0x02
#define ARPD_FLUSH   0x03

Variables

struct arphdr __attribute__

Class Documentation

struct arphdr

Definition at line 52 of file if_arp.h.

Class Members
unsigned char ar_hln
unsigned short int ar_hrd
unsigned short int ar_op
unsigned char ar_pln
unsigned short int ar_pro
struct arpreq

Definition at line 108 of file if_arp.h.

Class Members
char arp_dev
int arp_flags
struct arpreq_old

Definition at line 146 of file if_arp.h.

Class Members
int arp_flags
struct arpd_request

Definition at line 132 of file if_arp.h.

Class Members
unsigned long int dev
unsigned char ha
u_int32_t ip
unsigned short int req
unsigned long int stamp
unsigned long int updated

Define Documentation

#define ARPD_FLUSH   0x03

Definition at line 167 of file if_arp.h.

#define ARPD_LOOKUP   0x02

Definition at line 166 of file if_arp.h.

#define ARPD_UPDATE   0x01

Definition at line 165 of file if_arp.h.

#define ARPHRD_ADAPT   264

Definition at line 96 of file if_arp.h.

#define ARPHRD_APPLETLK   8 /* APPLEtalk. */

Definition at line 82 of file if_arp.h.

#define ARPHRD_ARCNET   7 /* ARCnet. */

Definition at line 81 of file if_arp.h.

#define ARPHRD_ASH   781 /* (Nexus Electronics) Ash. */

Definition at line 120 of file if_arp.h.

#define ARPHRD_ATM   19 /* ATM. */

Definition at line 84 of file if_arp.h.

#define ARPHRD_AX25   3 /* AX.25 Level 2. */

Definition at line 77 of file if_arp.h.

#define ARPHRD_BIF   775 /* AP1000 BIF. */

Definition at line 114 of file if_arp.h.

#define ARPHRD_CHAOS   5 /* Chaosnet. */

Definition at line 79 of file if_arp.h.

#define ARPHRD_CISCO   513 /* Cisco HDLC. */

Definition at line 101 of file if_arp.h.

#define ARPHRD_CSLIP   257

Definition at line 92 of file if_arp.h.

#define ARPHRD_CSLIP6   259

Definition at line 94 of file if_arp.h.

#define ARPHRD_DDCMP   517 /* Digital's DDCMP. */

Definition at line 104 of file if_arp.h.

#define ARPHRD_DLCI   15 /* Frame Relay DLCI. */

Definition at line 83 of file if_arp.h.

#define ARPHRD_ECONET   782 /* Acorn Econet. */

Definition at line 121 of file if_arp.h.

#define ARPHRD_EETHER   2 /* Experimental Ethernet. */

Definition at line 76 of file if_arp.h.

#define ARPHRD_ETHER   1 /* Ethernet 10/100Mbps. */

Definition at line 75 of file if_arp.h.

#define ARPHRD_EUI64   27 /* EUI-64. */

Definition at line 87 of file if_arp.h.

#define ARPHRD_FCAL   785 /* Fibrechanel arbitrated loop. */

Definition at line 124 of file if_arp.h.

#define ARPHRD_FCFABRIC   787 /* Fibrechanel fabric. */

Definition at line 126 of file if_arp.h.

#define ARPHRD_FCPL   786 /* Fibrechanel public loop. */

Definition at line 125 of file if_arp.h.

#define ARPHRD_FCPP   784 /* Point to point fibrechanel. */

Definition at line 123 of file if_arp.h.

#define ARPHRD_FDDI   774 /* Fiber Distributed Data Interface. */

Definition at line 113 of file if_arp.h.

#define ARPHRD_FRAD   770 /* Frame Relay Access Device. */

Definition at line 109 of file if_arp.h.

#define ARPHRD_HDLC   ARPHRD_CISCO

Definition at line 102 of file if_arp.h.

#define ARPHRD_HIPPI   780 /* High Performance Parallel I'face. */

Definition at line 119 of file if_arp.h.

#define ARPHRD_HWX25   272 /* Boards with X.25 in firmware. */

Definition at line 99 of file if_arp.h.

#define ARPHRD_IEEE1394   24 /* IEEE 1394 IPv4 - RFC 2734. */

Definition at line 86 of file if_arp.h.

#define ARPHRD_IEEE802   6 /* IEEE 802.2 Ethernet/TR/TB. */

Definition at line 80 of file if_arp.h.

#define ARPHRD_IEEE80211   801 /* IEEE 802.11. */

Definition at line 128 of file if_arp.h.

#define ARPHRD_IEEE80211_PRISM   802 /* IEEE 802.11 + Prism2 header. */

Definition at line 129 of file if_arp.h.

#define ARPHRD_IEEE80211_RADIOTAP   803 /* IEEE 802.11 + radiotap header. */

Definition at line 130 of file if_arp.h.

#define ARPHRD_IEEE802_TR   800 /* Magic type ident for TR. */

Definition at line 127 of file if_arp.h.

#define ARPHRD_INFINIBAND   32 /* InfiniBand. */

Definition at line 88 of file if_arp.h.

#define ARPHRD_IPDDP   777 /* IP-in-DDP tunnel. */

Definition at line 116 of file if_arp.h.

#define ARPHRD_IPGRE   778 /* GRE over IP. */

Definition at line 117 of file if_arp.h.

#define ARPHRD_IRDA   783 /* Linux-IrDA. */

Definition at line 122 of file if_arp.h.

#define ARPHRD_LAPB   516 /* LAPB. */

Definition at line 103 of file if_arp.h.

#define ARPHRD_LOCALTLK   773 /* Localtalk device. */

Definition at line 112 of file if_arp.h.

#define ARPHRD_LOOPBACK   772 /* Loopback device. */

Definition at line 111 of file if_arp.h.

#define ARPHRD_METRICOM   23 /* Metricom STRIP (new IANA id). */

Definition at line 85 of file if_arp.h.

#define ARPHRD_NETROM   0 /* From KA9Q: NET/ROM pseudo. */

Definition at line 74 of file if_arp.h.

#define ARPHRD_NONE   0xFFFE /* Zero header length. */

Definition at line 133 of file if_arp.h.

#define ARPHRD_PIMREG   779 /* PIMSM register interface. */

Definition at line 118 of file if_arp.h.

#define ARPHRD_PPP   512

Definition at line 100 of file if_arp.h.

#define ARPHRD_PRONET   4 /* PROnet token ring. */

Definition at line 78 of file if_arp.h.

#define ARPHRD_RAWHDLC   518 /* Raw HDLC. */

Definition at line 105 of file if_arp.h.

#define ARPHRD_ROSE   270

Definition at line 97 of file if_arp.h.

#define ARPHRD_RSRVD   260 /* Notional KISS type. */

Definition at line 95 of file if_arp.h.

#define ARPHRD_SIT   776 /* sit0 device - IPv6-in-IPv4. */

Definition at line 115 of file if_arp.h.

#define ARPHRD_SKIP   771 /* SKIP vif. */

Definition at line 110 of file if_arp.h.

#define ARPHRD_SLIP   256

Definition at line 91 of file if_arp.h.

#define ARPHRD_SLIP6   258

Definition at line 93 of file if_arp.h.

#define ARPHRD_TUNNEL   768 /* IPIP tunnel. */

Definition at line 107 of file if_arp.h.

#define ARPHRD_TUNNEL6   769 /* IPIP6 tunnel. */

Definition at line 108 of file if_arp.h.

#define ARPHRD_VOID   0xFFFF /* Void type, nothing is known. */

Definition at line 132 of file if_arp.h.

#define ARPHRD_X25   271 /* CCITT X.25. */

Definition at line 98 of file if_arp.h.

#define ARPOP_InREPLY   9 /* InARP reply. */

Definition at line 45 of file if_arp.h.

#define ARPOP_InREQUEST   8 /* InARP request. */

Definition at line 44 of file if_arp.h.

#define ARPOP_NAK   10 /* (ATM)ARP NAK. */

Definition at line 46 of file if_arp.h.

#define ARPOP_REPLY   2 /* ARP reply. */

Definition at line 41 of file if_arp.h.

#define ARPOP_REQUEST   1 /* ARP request. */

Definition at line 40 of file if_arp.h.

#define ARPOP_RREPLY   4 /* RARP reply. */

Definition at line 43 of file if_arp.h.

#define ARPOP_RREQUEST   3 /* RARP request. */

Definition at line 42 of file if_arp.h.

#define ATF_COM   0x02 /* Completed entry (ha valid). */

Definition at line 155 of file if_arp.h.

#define ATF_DONTPUB   0x40 /* Don't answer this addresses. */

Definition at line 160 of file if_arp.h.

#define ATF_MAGIC   0x80 /* Automatically added entry. */

Definition at line 161 of file if_arp.h.

#define ATF_NETMASK
Value:
0x20            /* Want to use a netmask (only
                                      for proxy entries).  */

Definition at line 159 of file if_arp.h.

#define ATF_PERM   0x04 /* Permanent entry. */

Definition at line 156 of file if_arp.h.

#define ATF_PUBL   0x08 /* Publish entry. */

Definition at line 157 of file if_arp.h.

#define ATF_USETRAILERS   0x10 /* Has requested trailers. */

Definition at line 158 of file if_arp.h.

#define MAX_ADDR_LEN   7

Definition at line 34 of file if_arp.h.


Variable Documentation