|
OpenVAS Scanner 23.32.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 112 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 207 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 226 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 78 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 94 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 48 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 291 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 454 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 309 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 244 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 327 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 339 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 482 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 610 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 351 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 404 of file nasl_host.c.
References alloc_typed_cell(), CONST_DATA, hostname, TC::size, TC::str_val, and TC::x.

Definition at line 185 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 152 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.
