mirror of
https://github.com/pavel-odintsov/fastnetmon
synced 2024-11-23 17:32:59 +01:00
31 lines
415 B
C++
31 lines
415 B
C++
#include <stdio.h>
|
|
#define NETMAP_WITH_LIBS
|
|
#include <net/netmap_user.h>
|
|
|
|
int main() {
|
|
|
|
}
|
|
|
|
|
|
struct nm_desc base_nmd;
|
|
|
|
/*
|
|
uint64_t nmd_flags;
|
|
struct nm_desc *nmd;
|
|
|
|
|
|
bzero(&base_nmd, sizeof(base_nmd));
|
|
|
|
|
|
// Open the netmap device using nm_open()
|
|
// protocol stack and may cause a reset of the card
|
|
nmd = nm_open("eth3", NULL, , &base_nmd);
|
|
|
|
if (nmd == NULL) {
|
|
printf("Unable to open netmap");
|
|
exit(1);
|
|
}
|
|
|
|
|
|
*/
|