2018-10-02 10:17:31 +00:00
|
|
|
#ifndef LWIP_PCAPIF_HELPER_H
|
|
|
|
#define LWIP_PCAPIF_HELPER_H
|
|
|
|
|
2020-02-16 19:43:33 +00:00
|
|
|
#include <stddef.h>
|
|
|
|
|
2018-10-02 10:17:31 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
struct pcapifh_linkstate;
|
|
|
|
|
|
|
|
enum pcapifh_link_event {
|
|
|
|
PCAPIF_LINKEVENT_UNKNOWN,
|
|
|
|
PCAPIF_LINKEVENT_UP,
|
|
|
|
PCAPIF_LINKEVENT_DOWN
|
|
|
|
};
|
|
|
|
|
|
|
|
struct pcapifh_linkstate* pcapifh_linkstate_init(char *adapter_name);
|
|
|
|
enum pcapifh_link_event pcapifh_linkstate_get(struct pcapifh_linkstate* state);
|
|
|
|
void pcapifh_linkstate_close(struct pcapifh_linkstate* state);
|
|
|
|
|
2020-02-16 19:43:33 +00:00
|
|
|
void *pcapifh_alloc_readonly_copy(void *data, size_t len);
|
|
|
|
void pcapifh_free_readonly_mem(void *data);
|
2018-10-02 10:17:31 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2018-10-22 18:33:35 +00:00
|
|
|
#endif /* LWIP_PCAPIF_HELPER_H */
|