OpenVAS Libraries  4.0+rc3.SVN
nasl/nasl_host.h
00001 /* Nessus Attack Scripting Language 
00002  *
00003  * Copyright (C) 2002 - 2003 Michel Arboi and Renaud Deraison
00004  *
00005  * This program is free software; you can redistribute it and/or modify
00006  * it under the terms of the GNU General Public License version 2,
00007  * as published by the Free Software Foundation
00008  *
00009  * This program is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  * GNU General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU General Public License
00015  * along with this program; if not, write to the Free Software
00016  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
00017  */
00018 
00019 #ifndef NASL_HOST_H
00020 #define NASL_HOST_H
00021 
00022 #include "nasl_lex_ctxt.h"      /* for lex_ctxt */
00023 #include "nasl_tree.h"          /* for tree_cell */
00024 
00025 tree_cell *get_hostname (lex_ctxt *);
00026 tree_cell *get_host_ip (lex_ctxt *);
00027 tree_cell *get_host_open_port (lex_ctxt *);
00028 tree_cell *get_port_state (lex_ctxt *);
00029 tree_cell *get_udp_port_state (lex_ctxt *);
00030 tree_cell *nasl_islocalhost (lex_ctxt *);
00031 tree_cell *nasl_islocalnet (lex_ctxt *);
00032 tree_cell *nasl_this_host (lex_ctxt *);
00033 tree_cell *nasl_this_host_name (lex_ctxt *);
00034 tree_cell *get_port_transport (lex_ctxt *);
00035 tree_cell *nasl_same_host (lex_ctxt *);
00036 tree_cell *nasl_target_is_ipv6 (lex_ctxt * lexic);
00037 
00038 #endif