OpenVAS Scanner 23.40.0
nasl_packet_forgery.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Greenbone AG
2 * SPDX-FileCopyrightText: 2002-2003 Michel Arboi
3 * SPDX-FileCopyrightText: 2002-2003 Renaud Deraison
4 *
5 * SPDX-License-Identifier: GPL-2.0-only
6 */
7
8#ifndef NASL_NASL_PACKET_FORGERY_H
9#define NASL_NASL_PACKET_FORGERY_H
10
11#include "nasl_lex_ctxt.h"
12
23
36
45
52
55
58
65#endif
struct struct_lex_ctxt lex_ctxt
tree_cell * nasl_tcp_ping(lex_ctxt *)
Launches a “TCP ping” against the target host.
Definition nasl_packet_forgery.c:2049
tree_cell * forge_igmp_packet(lex_ctxt *)
Fills an IP datagram with IGMP data.
Definition nasl_packet_forgery.c:1975
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:2203
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:1452
tree_cell * dump_icmp_packet(lex_ctxt *)
Dump the ICMP part of a IP Datagram.
Definition nasl_packet_forgery.c:1929
tree_cell * forge_icmp_packet(lex_ctxt *)
Fill an IP datagram with ICMP data.
Definition nasl_packet_forgery.c:1779
tree_cell * dump_ip_packet(lex_ctxt *)
Dump IP datagrams.
Definition nasl_packet_forgery.c:435
tree_cell * get_tcp_element(lex_ctxt *)
Extracts TCP field from an IP datagram.
Definition nasl_packet_forgery.c:653
tree_cell * insert_ip_options(lex_ctxt *)
Add option datagram.
Definition nasl_packet_forgery.c:358
tree_cell * set_ip_elements(lex_ctxt *)
Modify the fields of a datagram.
Definition nasl_packet_forgery.c:303
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:556
tree_cell * get_icmp_element(lex_ctxt *)
Get an ICMP element from a IP datagram.
Definition nasl_packet_forgery.c:1855
tree_cell * set_tcp_elements(lex_ctxt *)
Modify the TCP fields of a datagram.
Definition nasl_packet_forgery.c:930
tree_cell * forge_ip_packet(lex_ctxt *)
Forge an IP datagram.
Definition nasl_packet_forgery.c:105
tree_cell * dump_tcp_packet(lex_ctxt *)
Dump the TCP part of a IP Datagram.
Definition nasl_packet_forgery.c:1305
tree_cell * get_udp_element(lex_ctxt *)
Get an UDP element from a IP datagram.
Definition nasl_packet_forgery.c:1545
tree_cell * get_ip_element(lex_ctxt *)
Extracts a field from an IP datagram.
Definition nasl_packet_forgery.c:184
tree_cell * nasl_send_capture(lex_ctxt *)
Send a capture.
Definition nasl_packet_forgery.c:2491
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:1043
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:803
tree_cell * dump_udp_packet(lex_ctxt *)
Dump the UDP part of a IP Datagram.
Definition nasl_packet_forgery.c:1733
tree_cell * nasl_pcap_next(lex_ctxt *)
Listen to one packet and return it.
Definition nasl_packet_forgery.c:2341
tree_cell * set_udp_elements(lex_ctxt *)
Modify UDP fields of an IP datagram.
Definition nasl_packet_forgery.c:1621
struct TC tree_cell