ARPRegisterCallbacks Function

Microchip TCP/IP Stack

Microchip TCP/IP Stack Help
ARPRegisterCallbacks Function
C
CHAR ARPRegisterCallbacks(
    struct arp_app_callbacks * app
);
Description

This function allows end user application to register with callbacks, which will be called by ARP module to give notification to user-application about events occurred at ARP layer. For ex: when a ARP-packet is received, which is conflicting with our own pair of addresses (MAC-Address and IP-address). This is an extension for zeroconf protocol implementation (ZeroconfLL.c)

Preconditions

None

Parameters
Parameters 
Description 
app 
ARP-Application callbacks structure supplied by user-application 
Returns

id > 0 - Returns non-negative value that represents the id of registration The same id needs to be used in de-registration -1 - When registered applications exceed MAX_REG_APPS and there is no free slot for registration

Microchip TCP/IP Stack 5.42.08 - June 15, 2013
Copyright © 2012 Microchip Technology, Inc.  All rights reserved.