OpenVAS Libraries
9.0.3
|
Go to the source code of this file.
Functions | |
tree_cell * | get_hostname (lex_ctxt *) |
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. More... | |
tree_cell * | nasl_same_host (lex_ctxt *) |
tree_cell * | nasl_target_is_ipv6 (lex_ctxt *lexic) |
Definition at line 69 of file nasl_host.c.
References addr6_as_str(), alloc_tree_cell(), CONST_STR, FAKE_CELL, plug_get_host_ip(), struct_lex_ctxt::script_infos, TC::size, TC::str_val, TC::type, and TC::x.
Definition at line 90 of file nasl_host.c.
References alloc_tree_cell(), CONST_INT, TC::i_val, plug_get_host_open_port(), struct_lex_ctxt::script_infos, TC::type, and TC::x.
Definition at line 51 of file nasl_host.c.
References alloc_tree_cell(), CONST_STR, plug_get_host_fqdn(), struct_lex_ctxt::script_infos, TC::size, TC::str_val, TC::type, and TC::x.
Definition at line 105 of file nasl_host.c.
References alloc_tree_cell(), CONST_INT, FAKE_CELL, get_int_var_by_num(), host_get_port_state(), TC::i_val, struct_lex_ctxt::script_infos, TC::type, 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 277 of file nasl_host.c.
References alloc_tree_cell(), CONST_INT, CONST_STR, get_encaps_name(), get_int_local_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 124 of file nasl_host.c.
References alloc_tree_cell(), CONST_INT, FAKE_CELL, get_int_var_by_num(), host_get_port_state_udp(), TC::i_val, struct_lex_ctxt::script_infos, TC::type, and TC::x.
Definition at line 144 of file nasl_host.c.
References alloc_tree_cell(), CONST_INT, TC::i_val, plug_get_host_ip(), struct_lex_ctxt::script_infos, TC::type, v6_islocalhost(), and TC::x.
Definition at line 158 of file nasl_host.c.
References alloc_tree_cell(), CONST_INT, TC::i_val, plug_get_host_ip(), struct_lex_ctxt::script_infos, TC::type, v6_is_local_ip(), and TC::x.
Definition at line 307 of file nasl_host.c.
References alloc_typed_cell(), CONST_INT, get_int_local_var_by_name(), get_str_var_by_num(), TC::i_val, nasl_perror(), and TC::x.
Definition at line 433 of file nasl_host.c.
References alloc_tree_cell(), CONST_INT, TC::i_val, nasl_perror(), plug_get_host_ip(), struct_lex_ctxt::script_infos, TC::type, and TC::x.
Definition at line 172 of file nasl_host.c.
References addr6_as_str(), alloc_tree_cell(), CONST_DATA, err, openvas_resolve_as_addr6(), openvas_source_addr6(), openvas_source_addr_as_addr6(), openvas_source_iface_is_set(), plug_get_host_ip(), struct_lex_ctxt::script_infos, v6_getsourceip(), and v6_islocalhost().
Definition at line 227 of file nasl_host.c.
References alloc_tree_cell(), CONST_DATA, TC::size, TC::str_val, TC::type, and TC::x.