|
OpenVAS Scanner 23.40.3
|


Go to the source code of this file.
Functions | |
| tree_cell * | add_hostname (lex_ctxt *) |
| tree_cell * | get_hostname (lex_ctxt *) |
| tree_cell * | get_hostnames (lex_ctxt *) |
| tree_cell * | get_hostname_source (lex_ctxt *) |
| tree_cell * | resolve_hostname (lex_ctxt *) |
| tree_cell * | resolve_hostname_to_multiple_ips (lex_ctxt *) |
| Resolve a hostname and return all ip addresses as nasl array. | |
| tree_cell * | get_host_ip (lex_ctxt *) |
| tree_cell * | get_host_open_port (lex_ctxt *) |
| tree_cell * | get_port_state (lex_ctxt *) |
| tree_cell * | get_udp_port_state (lex_ctxt *) |
| tree_cell * | nasl_islocalhost (lex_ctxt *) |
| tree_cell * | nasl_islocalnet (lex_ctxt *) |
| tree_cell * | nasl_this_host (lex_ctxt *) |
| tree_cell * | nasl_this_host_name (lex_ctxt *) |
| tree_cell * | get_port_transport (lex_ctxt *) |
| Return the encapsulation mode of a port. | |
| tree_cell * | nasl_same_host (lex_ctxt *) |
| tree_cell * | nasl_target_is_ipv6 (lex_ctxt *lexic) |
| tree_cell * | host_reverse_lookup (lex_ctxt *lexic) |
| implements ip_reverse_lookup | |
Definition at line 113 of file nasl_host.c.
References get_str_var_by_name(), script_infos::ipc_context, ipc_data_destroy(), ipc_data_to_json(), ipc_data_type_from_hostname(), IPC_MAIN, ipc_send(), nasl_perror(), plug_add_host_fqdn(), and struct_lex_ctxt::script_infos.

Definition at line 208 of file nasl_host.c.
References alloc_typed_cell(), CONST_STR, FAKE_CELL, plug_get_host_ip(), struct_lex_ctxt::script_infos, TC::size, TC::str_val, and TC::x.

Definition at line 227 of file nasl_host.c.
References alloc_typed_cell(), CONST_INT, TC::i_val, plug_get_host_open_port(), struct_lex_ctxt::script_infos, and TC::x.

Definition at line 79 of file nasl_host.c.
References alloc_typed_cell(), CONST_STR, hostname, plug_get_host_fqdn(), struct_lex_ctxt::script_infos, TC::size, TC::str_val, and TC::x.

Definition at line 95 of file nasl_host.c.
References alloc_typed_cell(), CONST_STR, get_str_var_by_name(), plug_get_host_source(), struct_lex_ctxt::script_infos, TC::size, TC::str_val, and TC::x.

Definition at line 49 of file nasl_host.c.
References add_var_to_list(), alloc_typed_cell(), DYN_ARRAY, plug_get_host_fqdn_list(), TC::ref_val, st_nasl_string::s_siz, st_nasl_string::s_val, struct_lex_ctxt::script_infos, st_a_nasl_var::v, st_a_nasl_var::v_str, VAR2_DATA, st_a_nasl_var::var_type, and TC::x.

Definition at line 292 of file nasl_host.c.
References alloc_typed_cell(), CONST_INT, FAKE_CELL, get_int_var_by_num(), host_get_port_state(), TC::i_val, struct_lex_ctxt::script_infos, and TC::x.

Return the encapsulation mode of a port.
Takes a port number and returns its encapsulation mode (ENCAPS_*) The defined encapsulation modes are:
-asstring If not 0 return a human readabale string instead of an integer.
| [in] | lexic | Lexical context of the NASL interpreter. |
Definition at line 456 of file nasl_host.c.
References alloc_typed_cell(), CONST_INT, CONST_STR, get_encaps_name(), get_int_var_by_name(), get_int_var_by_num(), TC::i_val, plug_get_port_transport(), struct_lex_ctxt::script_infos, TC::size, TC::str_val, TC::type, and TC::x.

Definition at line 311 of file nasl_host.c.
References alloc_typed_cell(), CONST_INT, FAKE_CELL, get_int_var_by_num(), host_get_port_state_udp(), TC::i_val, struct_lex_ctxt::script_infos, and TC::x.

implements ip_reverse_lookup
Definition at line 245 of file nasl_host.c.
References alloc_typed_cell(), CONST_STR, FAKE_CELL, get_str_var_by_num(), nasl_perror(), plug_get_host_ip_str(), struct_lex_ctxt::script_infos, TC::size, TC::str_val, and TC::x.

Definition at line 329 of file nasl_host.c.
References alloc_typed_cell(), CONST_INT, TC::i_val, plug_get_host_ip(), struct_lex_ctxt::script_infos, v6_islocalhost(), and TC::x.

Definition at line 341 of file nasl_host.c.
References alloc_typed_cell(), CONST_INT, TC::i_val, plug_get_host_ip(), struct_lex_ctxt::script_infos, v6_is_local_ip(), and TC::x.

Definition at line 484 of file nasl_host.c.
References alloc_typed_cell(), CONST_INT, get_int_var_by_name(), get_str_var_by_num(), TC::i_val, nasl_perror(), and TC::x.

Definition at line 612 of file nasl_host.c.
References alloc_typed_cell(), CONST_INT, TC::i_val, nasl_perror(), plug_get_host_ip(), struct_lex_ctxt::script_infos, and TC::x.

Definition at line 353 of file nasl_host.c.
References alloc_typed_cell(), CONST_DATA, hostname, plug_get_host_ip(), struct_lex_ctxt::script_infos, TC::size, TC::str_val, v6_getsourceip(), v6_islocalhost(), and TC::x.

Definition at line 406 of file nasl_host.c.
References alloc_typed_cell(), CONST_DATA, hostname, TC::size, TC::str_val, and TC::x.

Definition at line 186 of file nasl_host.c.
References alloc_typed_cell(), CONST_STR, get_str_var_by_name(), nasl_perror(), TC::size, TC::str_val, and TC::x.

Resolve a hostname and return all ip addresses as nasl array.
Definition at line 153 of file nasl_host.c.
References add_var_to_list(), alloc_typed_cell(), DYN_ARRAY, get_str_var_by_name(), nasl_perror(), list::next, TC::ref_val, st_nasl_string::s_siz, st_nasl_string::s_val, st_a_nasl_var::v, st_a_nasl_var::v_str, VAR2_DATA, st_a_nasl_var::var_type, and TC::x.
