请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
器件型号:TM4C129XNCZAD 我想使用这个函数'cooki_setARPHook'来设置一个在接收 ARP 数据包时被调用的挂钩函数
函数如下所示
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 */
}
那么、在执行此操作后、回调人员从不调用、那么我该如何修复它呢?
