µTasker Forum

µTasker Forum => µTasker general => Topic started by: neil on June 08, 2009, 09:17:05 PM

Title: Adding to ARP entry
Post by: neil 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
Title: Re: Adding to ARP entry
Post by: mark 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