iCub-main
Macros | Functions | Variables
pcap_wrapper_linux.cpp File Reference
#include <unistd.h>
#include <stdio.h>
#include <pcap.h>
#include "EoCommon.h"
+ Include dependency graph for pcap_wrapper_linux.cpp:

Go to the source code of this file.

Macros

#define TIMEOUT_MS   1000
 

Functions

uint8_t wrapperPcap_init (char *dev, char *filter_expr)
 
uint8_t wrapperPcap_loop (int32_t cnt, pcap_handler callback, uint8_t *user)
 
void wrapperPcap_close (void)
 

Variables

static pcap_t * handle = NULL
 
static struct bpf_program fp
 

Macro Definition Documentation

◆ TIMEOUT_MS

#define TIMEOUT_MS   1000

Definition at line 63 of file pcap_wrapper_linux.cpp.

Function Documentation

◆ wrapperPcap_close()

void wrapperPcap_close ( void  )

Definition at line 156 of file pcap_wrapper_linux.cpp.

◆ wrapperPcap_init()

uint8_t wrapperPcap_init ( char *  dev,
char *  filter_expr 
)

Definition at line 95 of file pcap_wrapper_linux.cpp.

◆ wrapperPcap_loop()

uint8_t wrapperPcap_loop ( int32_t  cnt,
pcap_handler  callback,
uint8_t *  user 
)

Definition at line 147 of file pcap_wrapper_linux.cpp.

Variable Documentation

◆ fp

struct bpf_program fp
static

Definition at line 88 of file pcap_wrapper_linux.cpp.

◆ handle

pcap_t* handle = NULL
static

Definition at line 88 of file pcap_wrapper_linux.cpp.