OpenVAS Libraries  8.0.3
Functions
nasl_host.h File Reference
#include "nasl_lex_ctxt.h"
#include "nasl_tree.h"

Go to the source code of this file.

Functions

tree_cellget_hostname (lex_ctxt *)
 
tree_cellget_host_ip (lex_ctxt *)
 
tree_cellget_host_open_port (lex_ctxt *)
 
tree_cellget_port_state (lex_ctxt *)
 
tree_cellget_udp_port_state (lex_ctxt *)
 
tree_cellnasl_islocalhost (lex_ctxt *)
 
tree_cellnasl_islocalnet (lex_ctxt *)
 
tree_cellnasl_this_host (lex_ctxt *)
 
tree_cellnasl_this_host_name (lex_ctxt *)
 
tree_cellget_port_transport (lex_ctxt *)
 Return the encapsulation mode of a port. More...
 
tree_cellnasl_same_host (lex_ctxt *)
 
tree_cellnasl_target_is_ipv6 (lex_ctxt *lexic)
 

Function Documentation

tree_cell* get_host_ip ( lex_ctxt )
tree_cell* get_host_open_port ( lex_ctxt )
tree_cell* get_hostname ( lex_ctxt )
tree_cell* get_port_state ( lex_ctxt )
tree_cell* get_port_transport ( lex_ctxt lexic)

Return the encapsulation mode of a port.

NASL Function: get_port_transport

Takes a port number and returns its encapsulation mode (ENCAPS_*) The defined encapsulation modes are:

  • ENCAPS_AUTO Automatic encapsulation detection.
  • ENCAPS_IP No encapsulation
  • ENCAPS_SSLv23 Request compatibility options
  • ENCAPS_SSLv2 SSL version 2
  • ENCAPS_SSLv3 SSL version 3
  • ENCAPS_TLSv1 TLS version 1.0
  • ENCAPS_TLSv11 TLS version 1.1
  • ENCAPS_TLSv12 TLS version 1.2
  • ENCAPS_TLScustom SSL or TLS with custom priorities
NASL Unnamed Parameters:
  • An integer with the port number.
NASL Named Parameters:

-asstring If not 0 return a human readabale string instead of an integer.

NASL Returns:
An integer or a string with the encapsulation mode or NULL on error.
Parameters
[in]lexicLexical context of the NASL interpreter.
Returns
A tree cell.
tree_cell* get_udp_port_state ( lex_ctxt )
tree_cell* nasl_islocalhost ( lex_ctxt )
tree_cell* nasl_islocalnet ( lex_ctxt )
tree_cell* nasl_same_host ( lex_ctxt )
tree_cell* nasl_target_is_ipv6 ( lex_ctxt lexic)
tree_cell* nasl_this_host ( lex_ctxt )
tree_cell* nasl_this_host_name ( lex_ctxt )