Author Topic: Adding to ARP entry  (Read 8474 times)

Offline neil

  • Sr. Member
  • ****
  • Posts: 438
    • View Profile
Adding to ARP entry
« on: June 08, 2009, 09:17:05 PM »
Hi Mark,
I have a device connected directly to my board, and communicate to it via UDP communication. Sometimes it takes a while getting communication with it. I know the mac and ip address of the unit, is it possible to add them directly to the ARP table?

Regards
Neil

Offline mark

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3237
    • View Profile
    • uTasker
Re: Adding to ARP entry
« Reply #1 on: June 08, 2009, 11:11:00 PM »
Hi Neil

You can use the function
extern void fnAddARP(unsigned char *new_ip, unsigned char *rem_hwadr, unsigned char ucType);
If you set the ucType as ARP_FIXED_IP (rather than ARP_TEMP_IP) it will never timeout.

Regards

Mark