mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-08-23 06:35:57 +00:00
This uses VirtualAlloc/VirtualProtect on windows to simulate RX buffers that are readonly to lwIP (see task #14807). Signed-off-by: Simon Goldschmidt <goldsimon@gmx.de>
30 lines
633 B
C
30 lines
633 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);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* LWIP_PCAPIF_HELPER_H */
|