|
OpenVAS Libraries
8.0.8
|
#include <arpa/inet.h>#include <string.h>#include <glib.h>#include "bpf_share.h"#include "pcap_openvas.h"#include <pcap.h>#include "capture_packet.h"#include <netinet/ip.h>Functions | |
| int | islocalhost (struct in_addr *) |
| Tests whether a packet sent to IP is LIKELY to route through the kernel localhost interface. More... | |
| int | init_capture_device (struct in_addr src, struct in_addr dst, char *filter) |
| Set up the pcap filter, and select the correct interface. More... | |
| struct ip * | capture_next_packet (int bpf, int timeout, int *sz) |
| int | init_v6_capture_device (struct in6_addr src, struct in6_addr dst, char *filter) |
| struct ip6_hdr * | capture_next_v6_packet (int bpf, int timeout, int *sz) |
| struct ip* capture_next_packet | ( | int | bpf, |
| int | timeout, | ||
| int * | sz | ||
| ) |
| struct ip6_hdr* capture_next_v6_packet | ( | int | bpf, |
| int | timeout, | ||
| int * | sz | ||
| ) |
| int init_capture_device | ( | struct in_addr | src, |
| struct in_addr | dst, | ||
| char * | filter | ||
| ) |
Set up the pcap filter, and select the correct interface.
The filter will be changed only if this is necessary
| int init_v6_capture_device | ( | struct in6_addr | src, |
| struct in6_addr | dst, | ||
| char * | filter | ||
| ) |
| int islocalhost | ( | struct in_addr * | ) |
Tests whether a packet sent to IP is LIKELY to route through the kernel localhost interface.
1.8.11