pcapif.h

来自「NXPl788上lwip的无操作系统移植,基于Embest开发板」· C头文件 代码 · 共 25 行

H
25
字号
#ifndef __PKTIF_H__
#define __PKTIF_H__

#include "lwip/err.h"

/** Set to 1 to let rx use an own thread (only for NO_SYS==0).
 * If set to 0, ethernetif_poll is used to poll for packets.
 */
#ifndef PCAPIF_RX_USE_THREAD
#define PCAPIF_RX_USE_THREAD !NO_SYS
#endif
#if PCAPIF_RX_USE_THREAD && NO_SYS
#error "Can't create a dedicated RX thread with NO_SYS==1"
#endif

struct netif;

err_t pcapif_init    (struct netif *netif);
void  pcapif_shutdown(struct netif *netif);
#if !PCAPIF_RX_USE_THREAD
void  pcapif_poll    (struct netif *netif);
#endif /* !PCAPIF_RX_USE_THREAD */

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?