| 1 |
#ifndef LWIP_PCAPIF_HELPER_H |
| 2 |
#define LWIP_PCAPIF_HELPER_H |
| 3 |
|
| 4 |
#include <stddef.h> |
| 5 |
|
| 6 |
#ifdef __cplusplus |
| 7 |
extern "C" { |
| 8 |
#endif |
| 9 |
|
| 10 |
struct pcapifh_linkstate; |
| 11 |
|
| 12 |
enum pcapifh_link_event { |
| 13 |
PCAPIF_LINKEVENT_UNKNOWN, |
| 14 |
PCAPIF_LINKEVENT_UP, |
| 15 |
PCAPIF_LINKEVENT_DOWN |
| 16 |
}; |
| 17 |
|
| 18 |
struct pcapifh_linkstate* pcapifh_linkstate_init(char *adapter_name); |
| 19 |
enum pcapifh_link_event pcapifh_linkstate_get(struct pcapifh_linkstate* state); |
| 20 |
void pcapifh_linkstate_close(struct pcapifh_linkstate* state); |
| 21 |
|
| 22 |
void *pcapifh_alloc_readonly_copy(void *data, size_t len); |
| 23 |
void pcapifh_free_readonly_mem(void *data); |
| 24 |
|
| 25 |
void pcapifh_init_npcap(void); |
| 26 |
|
| 27 |
#ifdef __cplusplus |
| 28 |
} |
| 29 |
#endif |
| 30 |
|
| 31 |
#endif /* LWIP_PCAPIF_HELPER_H */ |