lwip/contrib/ports/win32/pcapif_helper.h
Simon Goldschmidt 1a5dffb931 win32: pcapif: ensure we can run with npcap as well
By default, npcap keeps its DLLs not in system32 but in system32/npcap.
To load DLLs from there, mark them as "delay load DLLs" and adjust the
DLL search path before using/loading them.

Signed-off-by: Simon Goldschmidt <goldsimon@gmx.de>
2023-06-29 22:11:55 +02:00

32 lines
665 B
C

#ifndef LWIP_PCAPIF_HELPER_H
#define LWIP_PCAPIF_HELPER_H
#include <stddef.h>
#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);
void *pcapifh_alloc_readonly_copy(void *data, size_t len);
void pcapifh_free_readonly_mem(void *data);
void pcapifh_init_npcap(void);
#ifdef __cplusplus
}
#endif
#endif /* LWIP_PCAPIF_HELPER_H */