|
OpenVAS Scanner 23.40.3
|

Go to the source code of this file.
Functions | |
| Describe (pcap) | |
| BeforeEach (pcap) | |
| AfterEach (pcap) | |
| __attribute__ ((weak)) | |
| int | __wrap_setsockopt (__attribute__((unused)) int sockfd, __attribute__((unused)) int level, __attribute__((unused)) int optname, __attribute__((unused)) const void *optval, __attribute__((unused)) socklen_t optlen) |
| Ensure (pcap, routethrough_dst_is_localhost) | |
| Ensure (pcap, routethrough_dst_is_not_localhost) | |
| Ensure (pcap, routethrough_no_src_dst_given) | |
| Ensure (pcap, routethrough_src_globalsource_set) | |
| Ensure (pcap, routethrough_src_globalsource_not_set) | |
| Ensure (pcap, v6_islocalhost) | |
| Ensure (pcap, islocalhost) | |
| static void | apply_ipv6_mask (struct in6_addr *network, struct in6_addr *dest, struct in6_addr *mask) |
| Apply mask to dest addr. | |
| Ensure (pcap, ipv6_prefix_to_mask) | |
| static TestSuite * | openvas_routethrough () |
| int | main (int argc, char **argv) |
Variables | |
| bool | g_setsockopt_use_real = true |
| __attribute__ | ( | (weak) | ) |
Definition at line 21 of file pcap_tests.c.
References __attribute__, and protocol.
| int __wrap_setsockopt | ( | __attribute__((unused)) int | sockfd, |
| __attribute__((unused)) int | level, | ||
| __attribute__((unused)) int | optname, | ||
| __attribute__((unused)) const void * | optval, | ||
| __attribute__((unused)) socklen_t | optlen ) |
Definition at line 58 of file pcap_tests.c.
References __attribute__, and g_setsockopt_use_real.
| AfterEach | ( | pcap | ) |
Definition at line 17 of file pcap_tests.c.
|
static |
Apply mask to dest addr.
| [out] | network | Masked dest addr. |
| [in] | dest | Destination addr. |
| [in] | mask | Mask to apply. |
Definition at line 248 of file pcap_tests.c.
Referenced by Ensure().

| BeforeEach | ( | pcap | ) |
Definition at line 13 of file pcap_tests.c.
| Describe | ( | pcap | ) |
| Ensure | ( | pcap | , |
| ipv6_prefix_to_mask | ) |
Definition at line 255 of file pcap_tests.c.
References apply_ipv6_mask(), and ipv6_prefix_to_mask().

| Ensure | ( | pcap | , |
| islocalhost | ) |
Definition at line 219 of file pcap_tests.c.
References islocalhost().

| Ensure | ( | pcap | , |
| routethrough_dst_is_localhost | ) |
Definition at line 71 of file pcap_tests.c.
References routethrough().

| Ensure | ( | pcap | , |
| routethrough_dst_is_not_localhost | ) |
Definition at line 101 of file pcap_tests.c.
References routethrough().

| Ensure | ( | pcap | , |
| routethrough_no_src_dst_given | ) |
Definition at line 126 of file pcap_tests.c.
References routethrough().

| Ensure | ( | pcap | , |
| routethrough_src_globalsource_not_set | ) |
Definition at line 161 of file pcap_tests.c.
References routethrough().

| Ensure | ( | pcap | , |
| routethrough_src_globalsource_set | ) |
Definition at line 133 of file pcap_tests.c.
References routethrough().

| Ensure | ( | pcap | , |
| v6_islocalhost | ) |
Definition at line 186 of file pcap_tests.c.
References v6_islocalhost().

| int main | ( | int | argc, |
| char ** | argv ) |
Definition at line 304 of file pcap_tests.c.
References openvas_routethrough().

|
static |
Definition at line 288 of file pcap_tests.c.
References ipv6_prefix_to_mask(), islocalhost(), and v6_islocalhost().
Referenced by main().


| bool g_setsockopt_use_real = true |
Definition at line 50 of file pcap_tests.c.
Referenced by __wrap_setsockopt().