OpenVAS Libraries
8.0.3
|
Remote host helper functions. More...
#include <arpa/inet.h>
#include <netdb.h>
#include <netinet/in.h>
#include <string.h>
#include <unistd.h>
#include "network.h"
#include "../base/openvas_networking.h"
#include "plugutils.h"
#include "pcap_openvas.h"
#include "nasl_tree.h"
#include "nasl_global_ctxt.h"
#include "nasl_func.h"
#include "nasl_var.h"
#include "nasl_lex_ctxt.h"
#include "nasl_debug.h"
#include "nasl_host.h"
Functions | |
tree_cell * | get_hostname (lex_ctxt *lexic) |
tree_cell * | get_host_ip (lex_ctxt *lexic) |
tree_cell * | get_host_open_port (lex_ctxt *lexic) |
tree_cell * | get_port_state (lex_ctxt *lexic) |
tree_cell * | get_udp_port_state (lex_ctxt *lexic) |
tree_cell * | nasl_islocalhost (lex_ctxt *lexic) |
tree_cell * | nasl_islocalnet (lex_ctxt *lexic) |
tree_cell * | nasl_this_host (lex_ctxt *lexic) |
tree_cell * | nasl_this_host_name (lex_ctxt *lexic) |
tree_cell * | get_port_transport (lex_ctxt *lexic) |
Return the encapsulation mode of a port. More... | |
tree_cell * | nasl_same_host (lex_ctxt *lexic) |
tree_cell * | nasl_target_is_ipv6 (lex_ctxt *lexic) |
Remote host helper functions.
This file contains all the functions which deal with the remote host: which ports are open, what is its IP, what is our IP, what transport is on the remote port, and so on...
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. |