01.06.2013 Views

IPC@CHIP Documentation - SC12 @CHIP-RTOS V1.10

IPC@CHIP Documentation - SC12 @CHIP-RTOS V1.10

IPC@CHIP Documentation - SC12 @CHIP-RTOS V1.10

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

ArpHeader<br />

Address Resolution Protocol (ARP) packet header has following form.<br />

typedef struct tag_ArpHeader<br />

{<br />

unsigned int arpHardware;<br />

unsigned int arpProtocol;<br />

unsigned char arpHardwareLength;<br />

unsigned char arpProtocolLength;<br />

unsigned int arpOperation;<br />

unsigned char arpSendPhyAddress[6];<br />

unsigned char arpSendNetAddress[4];<br />

unsigned char arpTargetPhyAddress[6];<br />

unsigned char arpTargetNetAddress[4];<br />

} ArpHeader;<br />

Related Topics<br />

Top of list<br />

Index page<br />

API function ARP_USER_CB - Install ARP callback function<br />

ArpRouteCacheEntry<br />

Comments<br />

typedef struct tagArpRouteCacheEntry<br />

{<br />

unsigned int ifIndex; // Interface index for this entry<br />

unsigned long flags; // Type/state of entry (see below)<br />

unsigned long arpIpAddress; // Device IP address or network address<br />

unsigned long mask; // Ip network mask for cloned ARP entries<br />

long arpTtl; // TimeToLive in milliseconds<br />

long hops; // Number of routers between this host and route<br />

union<br />

{<br />

struct<br />

{<br />

// Device IP address for Local routing entry<br />

unsigned long DevIpAddress;<br />

} LocalNetRouteEntry;<br />

struct<br />

{<br />

// Device Ethernet address for ARP entry<br />

unsigned char MacAddress[6];<br />

unsigned char filler[2];<br />

} ArpEntry;<br />

struct<br />

{<br />

unsigned long GatewayIpAddress; // Indirect route<br />

} GatewayEntry;<br />

} ArpRouteGwayUnion;<br />

} ArpRouteCacheEntry;<br />

flags<br />

This bit field is defined as follows:<br />

Note: Bit 2, 3, and 4 select the view of the ArpRouteGwayUnionunion.<br />

Bit 2: Indirect route (GatewayEntrystructure)<br />

Bit 3: Valid ARP entry (ArpEntrystructure)<br />

Bit 4: Local route (LocalNetRouteEntrystructure)<br />

Page 161 / 400

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!