OpenVAS Scanner  21.4.1
nasl_packet_forgery.h
Go to the documentation of this file.
1 /* Based on work Copyright (C) 2002 - 2003 Michel Arboi and Renaud Deraison
2  *
3  * SPDX-License-Identifier: GPL-2.0-only
4  *
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU General Public License
7  * version 2 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 St, Fifth Floor, Boston, MA 02110-1301 USA.
17  */
18 
19 #ifndef NASL_PACKET_FORGERY_H
20 
21 #include "nasl_lex_ctxt.h"
22 
23 tree_cell *
25 tree_cell *
27 tree_cell *
29 tree_cell *
31 tree_cell *
33 
34 tree_cell *
36 tree_cell *
38 tree_cell *
40 tree_cell *
42 tree_cell *
44 tree_cell *
46 
47 tree_cell *
49 tree_cell *
51 tree_cell *
53 tree_cell *
55 
56 tree_cell *
58 tree_cell *
60 tree_cell *
62 
63 tree_cell *
65 
66 tree_cell *
68 
69 tree_cell *
71 tree_cell *
73 tree_cell *
75 #endif
tree_cell * nasl_pcap_next(lex_ctxt *)
Listen to one packet and return it.
Definition: nasl_packet_forgery.c:2345
tree_cell * dump_ip_packet(lex_ctxt *)
Dump IP datagrams.
Definition: nasl_packet_forgery.c:443
tree_cell * get_tcp_element(lex_ctxt *)
Extracts TCP field from an IP datagram.
Definition: nasl_packet_forgery.c:661
tree_cell * nasl_send_packet(lex_ctxt *)
Send a list of packets (passed as unnamed arguments) and listens to the answers. It returns a block m...
Definition: nasl_packet_forgery.c:2209
tree_cell * dump_tcp_packet(lex_ctxt *)
Dump the TCP part of a IP Datagram.
Definition: nasl_packet_forgery.c:1313
tree_cell * forge_udp_packet(lex_ctxt *)
Fills an IP datagram with UDP data. Note that the ip_p field is not updated. It returns the modified ...
Definition: nasl_packet_forgery.c:1460
tree_cell * set_tcp_elements(lex_ctxt *)
Modify the TCP fields of a datagram.
Definition: nasl_packet_forgery.c:938
tree_cell * get_tcp_option(lex_ctxt *)
Get a TCP option from an IP datagram if present. Possible options are: TCPOPT_MAXSEG (2),...
Definition: nasl_packet_forgery.c:811
tree_cell * set_ip_elements(lex_ctxt *)
Modify the fields of a datagram.
Definition: nasl_packet_forgery.c:311
tree_cell * nasl_tcp_ping(lex_ctxt *)
Lunches a “TCP ping” against the target host.
Definition: nasl_packet_forgery.c:2055
tree_cell * insert_ip_options(lex_ctxt *)
Add option datagram.
Definition: nasl_packet_forgery.c:366
tree_cell * forge_icmp_packet(lex_ctxt *)
Fill an IP datagram with ICMP data.
Definition: nasl_packet_forgery.c:1787
tree_cell * insert_tcp_options(lex_ctxt *)
Add options to a TCP segment header. Possible options are: TCPOPT_MAXSEG (2), values between 536 and ...
Definition: nasl_packet_forgery.c:1051
tree_cell * forge_tcp_packet(lex_ctxt *)
Fills an IP datagram with TCP data. Note that the ip_p field is not updated. It returns the modified ...
Definition: nasl_packet_forgery.c:564
tree_cell * get_udp_element(lex_ctxt *)
Get an UDP element from a IP datagram.
Definition: nasl_packet_forgery.c:1553
tree_cell * forge_igmp_packet(lex_ctxt *)
Fills an IP datagram with IGMP data.
Definition: nasl_packet_forgery.c:1981
tree_cell * dump_icmp_packet(lex_ctxt *)
Dump the ICMP part of a IP Datagram.
Definition: nasl_packet_forgery.c:1935
tree_cell * get_ip_element(lex_ctxt *)
Extracts a field from an IP datagram.
Definition: nasl_packet_forgery.c:192
tree_cell * nasl_send_capture(lex_ctxt *)
Send a capture.
Definition: nasl_packet_forgery.c:2495
tree_cell * forge_ip_packet(lex_ctxt *)
Forge an IP datagram.
Definition: nasl_packet_forgery.c:113
tree_cell * set_udp_elements(lex_ctxt *)
Modify UDP fields of an IP datagram.
Definition: nasl_packet_forgery.c:1629
tree_cell * get_icmp_element(lex_ctxt *)
Get an ICMP element from a IP datagram.
Definition: nasl_packet_forgery.c:1863
tree_cell * dump_udp_packet(lex_ctxt *)
Dump the UDP part of a IP Datagram.
Definition: nasl_packet_forgery.c:1741
Definition: nasl_tree.h:105
Definition: nasl_lex_ctxt.h:34