BOOTLOADER
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Data Structures | Macros | Functions | Variables
ethernetarp.h File Reference

Go to the source code of this file.

Data Structures

struct  ARP_HEAD
struct  ARP_ENTRY
struct  ARP_CONTROL

Macros

#define ARP_CACHE_SIZE   16
#define ARP_HW_NETROM   0
#define ARP_HW_ETHER_10M   1
#define ARP_HW_ETHER_3M   2
#define ARP_HW_AX25   3
#define ARP_HW_PRONET   4
#define ARP_HW_CHAOS   5
#define ARP_HW_IEEE802   6
#define ARP_HW_ARCNET   7
#define ARP_HW_HYPERCHANNEL   8
#define ARP_HW_LANSTAR   9
#define ARP_HW_AUTONET_ADDR   10
#define ARP_HW_LOCAL_TALK   11
#define ARP_HW_LOCAL_NET   12
#define ARP_HW_ULTRA_LINK   13
#define ARP_HW_SMDS   14
#define ARP_HW_FRAME_REPLY   15
#define ARP_HW_ATM   16
#define ARP_HW_HDLC   17
#define ARP_HW_FIBRE_CHANNEL   18
#define ARP_HW_ATM2   19
#define ARP_HW_SERIAL_LINE   20
#define ARP_HW_ATM3   21
#define ARP_HW_MILSTD   22
#define ARP_HW_METRICOM   23
#define ARP_HW_IEEE1394   24
#define ARP_HW_MAPOS   25
#define ARP_HW_TWINAXIAL   26
#define ARP_HW_EUI64   27
#define ARP_HW_HIPARP   28
#define ARP_HW_IPARPISO78163   29
#define ARP_HW_ARPSPEC   30
#define ARP_HW_IPSEC_TUNNEL   31
#define ARP_HW_INFINIBAND   32
#define ARP_HW_TIA102   33
#define ARP_HW_SLIP   256
#define ARP_HW_CSLIP   257
#define ARP_HW_SLIP6   258
#define ARP_HW_CSLIP6   259
#define ARP_HW_RSRVD   260
#define ARP_HW_ADAPT   264
#define ARP_HW_ROSE   270
#define ARP_HW_X25   271
#define ARP_HW_HWX25   272
#define ARP_HW_PPP   512
#define ARP_HW_CISCO   513
#define ARP_HW_HDLC2   513
#define ARP_HW_LAPB   516
#define ARP_HW_DDCMP   517
#define ARP_HW_RAWHDLC   518
#define ARP_HW_TUNNEL   768
#define ARP_HW_TUNNEL6   769
#define ARP_HW_FRAD   770
#define ARP_HW_SKIP   771
#define ARP_HW_LOOPBACK   772
#define ARP_HW_LOCALTLK   773
#define ARP_HW_FDDI   774
#define ARP_HW_BIF   775
#define ARP_HW_SIT   776
#define ARP_HW_IPDDP   777
#define ARP_HW_IPGRE   778
#define ARP_HW_PIMREG   779
#define ARP_HW_HIPPI   780
#define ARP_HW_ASH   781
#define ARP_HW_ECONET   782
#define ARP_HW_IRDA   783
#define ARP_HW_FCPP   784
#define ARP_HW_FCAL   785
#define ARP_HW_FCPL   786
#define ARP_HW_FCFABRIC   787
#define ARP_HW_IEEE802_TR   800
#define ARP_HW_IEEE80211   801
#define ARP_HW_VOID   0xFFFF
#define ARP_PRTCL_IEEE8023   0x0000
#define ARP_PRTCL_EXPERIMENTAL   0x0101
#define ARP_PRTCL_XEROXPUP   0x0200
#define ARP_PRTCL_PUPADDRTRANS   0x0201
#define ARP_PRTCL_NIXDORF   0x0400
#define ARP_PRTCL_XEROXNSIDP   0x0600
#define ARP_PRTCL_DLOG   0x0660
#define ARP_PRTCL_DLOG2   0x0661
#define ARP_PRTCL_IPV4   0x0800
#define ARP_PRTCL_X75   0x0801
#define ARP_PRTCL_NBS   0x0802
#define ARP_OP_REQUEST   1
#define ARP_OP_REPLY   2
#define ARP_OP_REQUEST_REVERSE   3
#define ARP_OP_REPLY_REVERSE   4
#define ARP_OP_DRARP_REQUEST   5
#define ARP_OP_DRARP_REPLY   6
#define ARP_OP_DRARP_ERROR   7
#define ARP_OP_INARP_REQUEST   8
#define ARP_OP_INARP_REPLY   9
#define ARP_OP_ARP_NAK   10
#define ARP_OP_MARS_REQUEST   11
#define ARP_OP_MARS_MULTI   12
#define ARP_OP_MARS_MSERV   13
#define ARP_OP_MARS_JOIN   14
#define ARP_OP_MARS_LEAVE   15
#define ARP_OP_MARS_NAK   16
#define ARP_OP_MARS_UNSERV   17
#define ARP_OP_MARS_SJOIN   18
#define ARP_OP_MARS_SLEAVE   19
#define ARP_OP_MARS_GROUPLIST_REQUEST   20
#define ARP_OP_MARS_GROUPLIST_REPLY   21
#define ARP_OP_MARS_REDIRECT_MAP   22
#define ARP_OP_MAPOS_UNARP   23

Functions

void F_EthernetArpInit (void)
INT8U F_EthernetArpInUseCheck (void)
INT8U F_EthernetArpAllocate (INT16U UserId)
INT8U F_EthernetArpRelease (INT16U UserId)
INT8U F_EthernetArpEntrySet (INT16U UserId, INT8U *pMacAddress, INT8U *pIpAddress)
INT8U F_EthernetArpCacheAdd (INT8U *pMacAddress, INT8U *pIpAddress)
INT8U F_EthernetArpRequestSend (INT8U *pIpAddress)
INT8U F_EthernetArpResponseSend (ARP_HEAD *pArpHead)
INT8U F_EthernetArpAddressGet (INT8U *pIpAddress, INT8U *pMacAddress)
INT8U F_EthernetArpPacketReceive (ETHBUFFER *pBuffer)
INT8U F_EthernetArpPacketReceive2 (ETHBUFFER *pBuffer)

Variables

ARP_CONTROL ArpCtrl

Macro Definition Documentation

#define ARP_CACHE_SIZE   16

Definition at line 5 of file ethernetarp.h.

#define ARP_HW_ADAPT   264

Definition at line 53 of file ethernetarp.h.

#define ARP_HW_ARCNET   7

Definition at line 19 of file ethernetarp.h.

#define ARP_HW_ARPSPEC   30

Definition at line 42 of file ethernetarp.h.

#define ARP_HW_ASH   781

Definition at line 76 of file ethernetarp.h.

#define ARP_HW_ATM   16

Definition at line 28 of file ethernetarp.h.

#define ARP_HW_ATM2   19

Definition at line 31 of file ethernetarp.h.

#define ARP_HW_ATM3   21

Definition at line 33 of file ethernetarp.h.

#define ARP_HW_AUTONET_ADDR   10

Definition at line 22 of file ethernetarp.h.

#define ARP_HW_AX25   3

Definition at line 15 of file ethernetarp.h.

#define ARP_HW_BIF   775

Definition at line 70 of file ethernetarp.h.

#define ARP_HW_CHAOS   5

Definition at line 17 of file ethernetarp.h.

#define ARP_HW_CISCO   513

Definition at line 58 of file ethernetarp.h.

#define ARP_HW_CSLIP   257

Definition at line 49 of file ethernetarp.h.

#define ARP_HW_CSLIP6   259

Definition at line 51 of file ethernetarp.h.

#define ARP_HW_DDCMP   517

Definition at line 61 of file ethernetarp.h.

#define ARP_HW_ECONET   782

Definition at line 77 of file ethernetarp.h.

#define ARP_HW_ETHER_10M   1

Definition at line 13 of file ethernetarp.h.

#define ARP_HW_ETHER_3M   2

Definition at line 14 of file ethernetarp.h.

#define ARP_HW_EUI64   27

Definition at line 39 of file ethernetarp.h.

#define ARP_HW_FCAL   785

Definition at line 81 of file ethernetarp.h.

#define ARP_HW_FCFABRIC   787

Definition at line 83 of file ethernetarp.h.

#define ARP_HW_FCPL   786

Definition at line 82 of file ethernetarp.h.

#define ARP_HW_FCPP   784

Definition at line 80 of file ethernetarp.h.

#define ARP_HW_FDDI   774

Definition at line 69 of file ethernetarp.h.

#define ARP_HW_FIBRE_CHANNEL   18

Definition at line 30 of file ethernetarp.h.

#define ARP_HW_FRAD   770

Definition at line 65 of file ethernetarp.h.

#define ARP_HW_FRAME_REPLY   15

Definition at line 27 of file ethernetarp.h.

#define ARP_HW_HDLC   17

Definition at line 29 of file ethernetarp.h.

#define ARP_HW_HDLC2   513

Definition at line 59 of file ethernetarp.h.

#define ARP_HW_HIPARP   28

Definition at line 40 of file ethernetarp.h.

#define ARP_HW_HIPPI   780

Definition at line 75 of file ethernetarp.h.

#define ARP_HW_HWX25   272

Definition at line 56 of file ethernetarp.h.

#define ARP_HW_HYPERCHANNEL   8

Definition at line 20 of file ethernetarp.h.

#define ARP_HW_IEEE1394   24

Definition at line 36 of file ethernetarp.h.

#define ARP_HW_IEEE802   6

Definition at line 18 of file ethernetarp.h.

#define ARP_HW_IEEE80211   801

Definition at line 86 of file ethernetarp.h.

#define ARP_HW_IEEE802_TR   800

Definition at line 85 of file ethernetarp.h.

#define ARP_HW_INFINIBAND   32

Definition at line 44 of file ethernetarp.h.

#define ARP_HW_IPARPISO78163   29

Definition at line 41 of file ethernetarp.h.

#define ARP_HW_IPDDP   777

Definition at line 72 of file ethernetarp.h.

#define ARP_HW_IPGRE   778

Definition at line 73 of file ethernetarp.h.

#define ARP_HW_IPSEC_TUNNEL   31

Definition at line 43 of file ethernetarp.h.

#define ARP_HW_IRDA   783

Definition at line 78 of file ethernetarp.h.

#define ARP_HW_LANSTAR   9

Definition at line 21 of file ethernetarp.h.

#define ARP_HW_LAPB   516

Definition at line 60 of file ethernetarp.h.

#define ARP_HW_LOCAL_NET   12

Definition at line 24 of file ethernetarp.h.

#define ARP_HW_LOCAL_TALK   11

Definition at line 23 of file ethernetarp.h.

#define ARP_HW_LOCALTLK   773

Definition at line 68 of file ethernetarp.h.

#define ARP_HW_LOOPBACK   772

Definition at line 67 of file ethernetarp.h.

#define ARP_HW_MAPOS   25

Definition at line 37 of file ethernetarp.h.

#define ARP_HW_METRICOM   23

Definition at line 35 of file ethernetarp.h.

#define ARP_HW_MILSTD   22

Definition at line 34 of file ethernetarp.h.

#define ARP_HW_NETROM   0

Definition at line 12 of file ethernetarp.h.

#define ARP_HW_PIMREG   779

Definition at line 74 of file ethernetarp.h.

#define ARP_HW_PPP   512

Definition at line 57 of file ethernetarp.h.

#define ARP_HW_PRONET   4

Definition at line 16 of file ethernetarp.h.

#define ARP_HW_RAWHDLC   518

Definition at line 62 of file ethernetarp.h.

#define ARP_HW_ROSE   270

Definition at line 54 of file ethernetarp.h.

#define ARP_HW_RSRVD   260

Definition at line 52 of file ethernetarp.h.

#define ARP_HW_SERIAL_LINE   20

Definition at line 32 of file ethernetarp.h.

#define ARP_HW_SIT   776

Definition at line 71 of file ethernetarp.h.

#define ARP_HW_SKIP   771

Definition at line 66 of file ethernetarp.h.

#define ARP_HW_SLIP   256

Definition at line 48 of file ethernetarp.h.

#define ARP_HW_SLIP6   258

Definition at line 50 of file ethernetarp.h.

#define ARP_HW_SMDS   14

Definition at line 26 of file ethernetarp.h.

#define ARP_HW_TIA102   33

Definition at line 45 of file ethernetarp.h.

#define ARP_HW_TUNNEL   768

Definition at line 63 of file ethernetarp.h.

#define ARP_HW_TUNNEL6   769

Definition at line 64 of file ethernetarp.h.

#define ARP_HW_TWINAXIAL   26

Definition at line 38 of file ethernetarp.h.

#define ARP_HW_ULTRA_LINK   13

Definition at line 25 of file ethernetarp.h.

#define ARP_HW_VOID   0xFFFF

Definition at line 87 of file ethernetarp.h.

#define ARP_HW_X25   271

Definition at line 55 of file ethernetarp.h.

#define ARP_OP_ARP_NAK   10

Definition at line 111 of file ethernetarp.h.

#define ARP_OP_DRARP_ERROR   7

Definition at line 108 of file ethernetarp.h.

#define ARP_OP_DRARP_REPLY   6

Definition at line 107 of file ethernetarp.h.

#define ARP_OP_DRARP_REQUEST   5

Definition at line 106 of file ethernetarp.h.

#define ARP_OP_INARP_REPLY   9

Definition at line 110 of file ethernetarp.h.

#define ARP_OP_INARP_REQUEST   8

Definition at line 109 of file ethernetarp.h.

#define ARP_OP_MAPOS_UNARP   23

Definition at line 124 of file ethernetarp.h.

#define ARP_OP_MARS_GROUPLIST_REPLY   21

Definition at line 122 of file ethernetarp.h.

#define ARP_OP_MARS_GROUPLIST_REQUEST   20

Definition at line 121 of file ethernetarp.h.

#define ARP_OP_MARS_JOIN   14

Definition at line 115 of file ethernetarp.h.

#define ARP_OP_MARS_LEAVE   15

Definition at line 116 of file ethernetarp.h.

#define ARP_OP_MARS_MSERV   13

Definition at line 114 of file ethernetarp.h.

#define ARP_OP_MARS_MULTI   12

Definition at line 113 of file ethernetarp.h.

#define ARP_OP_MARS_NAK   16

Definition at line 117 of file ethernetarp.h.

#define ARP_OP_MARS_REDIRECT_MAP   22

Definition at line 123 of file ethernetarp.h.

#define ARP_OP_MARS_REQUEST   11

Definition at line 112 of file ethernetarp.h.

#define ARP_OP_MARS_SJOIN   18

Definition at line 119 of file ethernetarp.h.

#define ARP_OP_MARS_SLEAVE   19

Definition at line 120 of file ethernetarp.h.

#define ARP_OP_MARS_UNSERV   17

Definition at line 118 of file ethernetarp.h.

#define ARP_OP_REPLY   2

Definition at line 103 of file ethernetarp.h.

#define ARP_OP_REPLY_REVERSE   4

Definition at line 105 of file ethernetarp.h.

#define ARP_OP_REQUEST   1

Definition at line 102 of file ethernetarp.h.

#define ARP_OP_REQUEST_REVERSE   3

Definition at line 104 of file ethernetarp.h.

#define ARP_PRTCL_DLOG   0x0660

Definition at line 96 of file ethernetarp.h.

#define ARP_PRTCL_DLOG2   0x0661

Definition at line 97 of file ethernetarp.h.

#define ARP_PRTCL_EXPERIMENTAL   0x0101

Definition at line 91 of file ethernetarp.h.

#define ARP_PRTCL_IEEE8023   0x0000

Definition at line 90 of file ethernetarp.h.

#define ARP_PRTCL_IPV4   0x0800

Definition at line 98 of file ethernetarp.h.

#define ARP_PRTCL_NBS   0x0802

Definition at line 100 of file ethernetarp.h.

#define ARP_PRTCL_NIXDORF   0x0400

Definition at line 94 of file ethernetarp.h.

#define ARP_PRTCL_PUPADDRTRANS   0x0201

Definition at line 93 of file ethernetarp.h.

#define ARP_PRTCL_X75   0x0801

Definition at line 99 of file ethernetarp.h.

#define ARP_PRTCL_XEROXNSIDP   0x0600

Definition at line 95 of file ethernetarp.h.

#define ARP_PRTCL_XEROXPUP   0x0200

Definition at line 92 of file ethernetarp.h.


Function Documentation

INT8U F_EthernetArpAddressGet ( INT8U pIpAddress,
INT8U pMacAddress 
)

Definition at line 92 of file ethernetarp.c.

INT8U F_EthernetArpAllocate ( INT16U  UserId)

Definition at line 36 of file ethernetarp.c.

INT8U F_EthernetArpCacheAdd ( INT8U pMacAddress,
INT8U pIpAddress 
)

Definition at line 59 of file ethernetarp.c.

INT8U F_EthernetArpEntrySet ( INT16U  UserId,
INT8U pMacAddress,
INT8U pIpAddress 
)

Definition at line 51 of file ethernetarp.c.

void F_EthernetArpInit ( void  )

Definition at line 24 of file ethernetarp.c.

INT8U F_EthernetArpInUseCheck ( void  )

Definition at line 32 of file ethernetarp.c.

INT8U F_EthernetArpPacketReceive ( ETHBUFFER pBuffer)

Definition at line 270 of file ethernetarp.c.

INT8U F_EthernetArpPacketReceive2 ( ETHBUFFER pBuffer)

Definition at line 284 of file ethernetarp.c.

INT8U F_EthernetArpRelease ( INT16U  UserId)

Definition at line 44 of file ethernetarp.c.

INT8U F_EthernetArpRequestSend ( INT8U pIpAddress)

Definition at line 126 of file ethernetarp.c.

INT8U F_EthernetArpResponseSend ( ARP_HEAD pArpHead)

Definition at line 174 of file ethernetarp.c.


Variable Documentation

ARP_CONTROL ArpCtrl

Definition at line 20 of file ethernetarp.c.