OpenVAS Libraries  4.0+rc3.SVN
nasl_packet_forgery.h
1 /* Nessus Attack Scripting Language
2  *
3  * Copyright (C) 2002 - 2003 Michel Arboi and Renaud Deraison
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License version 2,
7  * as published by the Free Software Foundation
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17  */
18 
19 #ifndef NASL_PACKET_FORGERY_H
20 
21 
22 tree_cell *forge_ip_packet (lex_ctxt *);
23 tree_cell *set_ip_elements (lex_ctxt *);
24 tree_cell *get_ip_element (lex_ctxt *);
25 tree_cell *dump_ip_packet (lex_ctxt *);
26 tree_cell *insert_ip_options (lex_ctxt *);
27 
28 
29 tree_cell *forge_tcp_packet (lex_ctxt *);
30 tree_cell *get_tcp_element (lex_ctxt *);
31 tree_cell *set_tcp_elements (lex_ctxt *);
32 tree_cell *dump_tcp_packet (lex_ctxt *);
33 
34 
35 tree_cell *forge_udp_packet (lex_ctxt *);
36 tree_cell *set_udp_elements (lex_ctxt *);
37 tree_cell *dump_udp_packet (lex_ctxt *);
38 tree_cell *get_udp_element (lex_ctxt *);
39 
40 
41 tree_cell *forge_icmp_packet (lex_ctxt *);
42 tree_cell *get_icmp_element (lex_ctxt *);
43 
44 
45 tree_cell *forge_igmp_packet (lex_ctxt *);
46 
47 
48 tree_cell *nasl_tcp_ping (lex_ctxt *);
49 
50 tree_cell *nasl_send_packet (lex_ctxt *);
51 tree_cell *nasl_pcap_next (lex_ctxt *);
52 tree_cell *nasl_send_capture (lex_ctxt *);
53 #endif