|
OpenVAS Scanner 23.40.3
|


Go to the source code of this file.
Functions | |
| int | hosts_init (int) |
| int | hosts_new (char *, kb_t, kb_t) |
| int | hosts_set_pid (char *, pid_t) |
| int | hosts_read (void) |
| Returns -1 if client asked to stop all tests or connection was lost or error. 0 otherwise. | |
| void | hosts_stop_all (void) |
| void | host_set_time (kb_t, char *, char *) |
| Add star_scan and end_scan results to the main kb. | |
| int | host_is_currently_scanned (gvm_host_t *) |
| Returns 1 if the host is being scanned. 0 otherwise. | |
| int host_is_currently_scanned | ( | gvm_host_t * | host_to_check | ) |
Returns 1 if the host is being scanned. 0 otherwise.
It checks not only the main IP of the host, but also the ips that a dns-lookup returns.
Definition at line 271 of file hosts.c.
References hosts, hosts_read(), host::name, and host::next.
Referenced by attack_network().


| void host_set_time | ( | kb_t | kb, |
| char * | ip, | ||
| char * | type ) |
Add star_scan and end_scan results to the main kb.
| [in] | kb | Main KB where results are stored. |
| [in] | ip | List of vhosts to add new vhosts to. |
| [in] | type | If it is start or end message. |
Definition at line 64 of file hosts.c.
References host::ip, kb_item_push_str_with_main_kb_check(), and len.
Referenced by attack_host().


| int hosts_init | ( | int | max_hosts | ) |
Definition at line 144 of file hosts.c.
References g_max_hosts.
Referenced by attack_network().

| int hosts_new | ( | char * | name, |
| kb_t | kb, | ||
| kb_t | main_kb ) |
Definition at line 151 of file hosts.c.
References g_max_hosts, global_scan_stop, host::host_kb, hosts, hosts_num(), hosts_read(), main_kb, host::name, name, host::next, host::pid, host::prev, and host::results_kb.
Referenced by attack_network().


| int hosts_read | ( | void | ) |
Returns -1 if client asked to stop all tests or connection was lost or error. 0 otherwise.
Definition at line 253 of file hosts.c.
References hosts, and hosts_read_data().
Referenced by attack_network(), host_is_currently_scanned(), and hosts_new().


| int hosts_set_pid | ( | char * | name, |
| pid_t | pid ) |
Definition at line 177 of file hosts.c.
References hosts_get(), name, host::pid, and pid.
Referenced by attack_network().


| void hosts_stop_all | ( | void | ) |
Definition at line 203 of file hosts.c.
References global_scan_stop, hosts, hosts_stop_host(), and host::next.
Referenced by scan_stop_cleanup().

