|
OpenVAS Scanner 23.40.3
|
#include <netinet/in.h>#include <netinet/ip6.h>

Go to the source code of this file.
Functions | |
| int | init_capture_device (struct in_addr, struct in_addr, char *) |
| Set up the pcap filter, and select the correct interface. | |
| struct ip * | capture_next_packet (int, int, int *) |
| char * | capture_next_frame (int, int, int *, int) |
| Capture a link layer frame. | |
| int | init_v6_capture_device (struct in6_addr, struct in6_addr, char *) |
| struct ip6_hdr * | capture_next_v6_packet (int, int, int *) |
| char * capture_next_frame | ( | int | bpf, |
| int | timeout, | ||
| int * | sz, | ||
| int | dl_layer_only ) |
Capture a link layer frame.
| [in] | bpf | bpf handler |
| [in] | timeout | the timeout |
| [out] | sz | size of the frame, -1 if no frame was received. |
| [in] | dl_layer_only | If the answer should include the payload. |
Definition at line 96 of file capture_packet.c.
References bpf_datalink(), bpf_next(), get_datalink_size(), len, and timeval().
Referenced by send_frame().


| struct ip * capture_next_packet | ( | int | bpf, |
| int | timeout, | ||
| int * | sz ) |
Definition at line 157 of file capture_packet.c.
References bpf_datalink(), bpf_next(), get_datalink_size(), len, and timeval().
Referenced by nasl_send_packet().


| struct ip6_hdr * capture_next_v6_packet | ( | int | bpf, |
| int | timeout, | ||
| int * | sz ) |
Definition at line 271 of file capture_packet.c.
References bpf_datalink(), bpf_next(), get_datalink_size(), len, and timeval().
Referenced by nasl_send_v6packet().


| int init_capture_device | ( | struct in_addr | src, |
| struct in_addr | dest, | ||
| char * | filter ) |
Set up the pcap filter, and select the correct interface.
The filter will be changed only if this is necessary
Definition at line 31 of file capture_packet.c.
References bpf_open_live(), islocalhost(), name, and routethrough().
Referenced by nasl_send_packet(), nasl_tcp_ping(), and send_frame().


| int init_v6_capture_device | ( | struct in6_addr | src, |
| struct in6_addr | dest, | ||
| char * | filter ) |
Definition at line 215 of file capture_packet.c.
References bpf_open_live(), name, v6_islocalhost(), and v6_routethrough().
Referenced by nasl_send_v6packet(), nasl_tcp_v6_ping(), and send_frame().

