|
OpenVAS Scanner 23.40.3
|
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) |
Header file for module bpf_share.
Definition in file bpf_share.h.
| void bpf_close | ( | int | bpf | ) |
Definition at line 164 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(), send_frame(), sendpacket(), and v6_sendpacket().

| int bpf_datalink | ( | int | bpf | ) |
Definition at line 158 of file bpf_share.c.
References pcaps.
Referenced by capture_next_frame(), 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 150 of file bpf_share.c.
References bpf_next_tv(), and timeval().
Referenced by capture_next_frame(), 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 119 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 39 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().

