This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TM4C129XNCZAD: I want to set callback function upon arp packet reception through NDK apis

Part Number: TM4C129XNCZAD

I want to use this function 'LLI_setARPHook' to set a hook function that will be called upon ARP packet reception

the function is like 

void fxnARPCallback(void* data)
{
    /*
    check arp sender ip packet
    */
}

/* inside another task we are using */
void task()
{
    LLI_setARPHook(fxnARPCallback);
    /*then trigger an arp packet from sender PC 
        by removing the arp entry from pc then ping to this socket in order to
        look at the sender's arp data packet */
}


so after doing so the callback never called so how can I fix that?

  • Hi,

      In NDK you can add hook function, perhaps you can add your hook callback function for 'Network IP address hook'. See below example. 

    Or you can add to the .cfg file manually like below. 

    Global.networkIPAddrHook = "&MyHookFunction";