OpenVAS Scanner
7.0.1~git
|
#include <gvm/base/logging.h>
#include <pcap.h>
Go to the source code of this file.
Macros | |
#define | NUM_CLIENTS 128 |
#define | G_LOG_DOMAIN "lib misc" |
GLib logging domain. More... | |
Functions | |
void | print_pcap_error (pcap_t *p, char *prefix) |
int | bpf_open_live (char *iface, char *filter) |
u_char * | bpf_next_tv (int bpf, int *caplen, struct timeval *tv) |
u_char * | bpf_next (int bpf, int *caplen) |
int | bpf_datalink (int bpf) |
void | bpf_close (int bpf) |
Variables | |
static pcap_t * | pcaps [NUM_CLIENTS] |
#define G_LOG_DOMAIN "lib misc" |
GLib logging domain.
Definition at line 35 of file bpf_share.c.
#define NUM_CLIENTS 128 |
Definition at line 29 of file bpf_share.c.
Referenced by bpf_open_live().
void bpf_close | ( | int | bpf | ) |
Definition at line 157 of file bpf_share.c.
References pcaps.
Referenced by nasl_pcap_next(), nasl_send_capture(), nasl_send_packet(), nasl_send_v6packet(), nasl_tcp_ping(), nasl_tcp_v6_ping(), scan(), sendpacket(), and v6_sendpacket().
int bpf_datalink | ( | int | bpf | ) |
Definition at line 151 of file bpf_share.c.
References pcaps.
Referenced by capture_next_packet(), capture_next_v6_packet(), nasl_pcap_next(), nasl_send_capture(), and scan().
u_char* bpf_next | ( | int | bpf, |
int * | caplen | ||
) |
Definition at line 143 of file bpf_share.c.
References bpf_next_tv(), and timeval().
Referenced by capture_next_packet(), capture_next_v6_packet(), nasl_pcap_next(), nasl_send_capture(), and v6_sendpacket().
u_char* bpf_next_tv | ( | int | bpf, |
int * | caplen, | ||
struct timeval * | tv | ||
) |
Definition at line 112 of file bpf_share.c.
References pcaps, and timeval().
Referenced by bpf_next(), nasl_tcp_ping(), nasl_tcp_v6_ping(), and sendpacket().
int bpf_open_live | ( | char * | iface, |
char * | filter | ||
) |
Definition at line 52 of file bpf_share.c.
References NUM_CLIENTS, pcaps, and print_pcap_error().
Referenced by init_capture_device(), init_v6_capture_device(), nasl_pcap_next(), nasl_send_capture(), openbpf(), and v6_openbpf().
void print_pcap_error | ( | pcap_t * | p, |
char * | prefix | ||
) |
Definition at line 41 of file bpf_share.c.
References prefix().
Referenced by bpf_open_live().
|
static |
Shared pcap_t's.
Definition at line 38 of file bpf_share.c.
Referenced by bpf_close(), bpf_datalink(), bpf_next_tv(), and bpf_open_live().