|
OpenVAS Scanner 23.32.3
|
Header file for module nasl_frame_forgery. More...
#include "nasl_lex_ctxt.h"

Go to the source code of this file.
Functions | |
| tree_cell * | nasl_send_arp_request (lex_ctxt *) |
| Send an arp request to an IP host. | |
| tree_cell * | nasl_get_local_mac_address_from_ip (lex_ctxt *) |
| Get the MAC address of host. | |
| tree_cell * | nasl_forge_frame (lex_ctxt *) |
| Forge a datalink layer frame. | |
| tree_cell * | nasl_send_frame (lex_ctxt *) |
| Send a frame and listen to the answer. | |
| tree_cell * | nasl_dump_frame (lex_ctxt *) |
| Dump a datalink layer frame. | |
Header file for module nasl_frame_forgery.
Definition in file nasl_frame_forgery.h.
Dump a datalink layer frame.
@naslparam
| lexic | Lexical context of NASL interpreter. |
Definition at line 363 of file nasl_frame_forgery.c.
References dump_frame(), get_str_var_by_name(), get_var_size_by_name(), and nasl_perror().

Forge a datalink layer frame.
@naslparams
| lexic | Lexical context of NASL interpreter. |
Definition at line 268 of file nasl_frame_forgery.c.
References alloc_typed_cell(), CONST_DATA, forge_frame(), get_int_var_by_name(), get_str_var_by_name(), get_var_size_by_name(), nasl_perror(), payload, TC::size, TC::str_val, and TC::x.

Get the MAC address of host.
@naslparam
ip_address Local IP address
@naslreturn The MAC address of the host. NULL otherwise
| [in] | lexic | Lexical context of NASL interpreter. |
Definition at line 438 of file nasl_frame_forgery.c.
References alloc_typed_cell(), CONST_DATA, get_local_mac_address_from_ip(), get_str_var_by_num(), mac(), TC::size, TC::str_val, and TC::x.

Send an arp request to an IP host.
| [in] | lexic | Lexical context of NASL interpreter. |
Definition at line 471 of file nasl_frame_forgery.c.
References pseudo_eth_arp::__ar_sha, pseudo_eth_arp::__ar_sip, pseudo_eth_arp::__ar_tha, pseudo_eth_arp::__ar_tip, alloc_typed_cell(), pseudo_eth_arp::arp_header, CONST_DATA, daddr, forge_frame(), get_int_var_by_name(), get_local_mac_address_from_ip(), mac(), plug_get_host_ip(), routethrough(), struct_lex_ctxt::script_infos, send_frame(), TC::size, TC::str_val, and TC::x.

Send a frame and listen to the answer.
@naslparams
| lexic | Lexical context of NASL interpreter. |
Definition at line 314 of file nasl_frame_forgery.c.
References alloc_typed_cell(), CONST_DATA, get_int_var_by_name(), get_str_var_by_name(), get_var_size_by_name(), nasl_perror(), plug_get_host_ip(), struct_lex_ctxt::script_infos, send_frame(), TC::size, TC::str_val, and TC::x.
