OpenVAS Scanner 23.23.1
bpf_share.h File Reference

Header file for module bpf_share. More...

#include <sys/types.h>

Go to the source code of this file.

Functions

int bpf_open_live (char *, char *)
u_char * bpf_next (int, int *)
u_char * bpf_next_tv (int, int *, struct timeval *)
void bpf_close (int)
int bpf_datalink (int)

Detailed Description

Header file for module bpf_share.

Function Documentation

◆ bpf_close()

void bpf_close ( int bpf)

◆ bpf_datalink()

int bpf_datalink ( int bpf)

◆ bpf_next()

u_char * bpf_next ( int bpf,
int * caplen )

◆ bpf_next_tv()

u_char * bpf_next_tv ( int bpf,
int * caplen,
struct timeval * tv )

◆ bpf_open_live()

int bpf_open_live ( char * iface,
char * filter )
Returns
-1 in case of error, index of the opened pcap_t in pcaps otherwise.