OpenVAS Libraries
9.0.1
|
NASL IPv6 Packet Forgery functions. More...
#include <arpa/inet.h>
#include <ctype.h>
#include <pcap.h>
#include <stdlib.h>
#include <string.h>
#include <sys/time.h>
#include <unistd.h>
#include <netinet/icmp6.h>
#include "../misc/bpf_share.h"
#include "../misc/pcap_openvas.h"
#include "../misc/plugutils.h"
#include "nasl_raw.h"
#include "nasl_tree.h"
#include "nasl_global_ctxt.h"
#include "nasl_func.h"
#include "nasl_var.h"
#include "nasl_lex_ctxt.h"
#include "exec.h"
#include "nasl_socket.h"
#include "nasl_debug.h"
#include "capture_packet.h"
#include "nasl_packet_forgery_v6.h"
Data Structures | |
struct | v6pseudohdr |
struct | v6pseudo_udp_hdr |
struct | v6pseudo_icmp_hdr |
struct | igmp6_hdr |
Macros | |
#define | FIX(n) htons(n) |
#define | UNFIX(n) ntohs(n) |
#define | rnd_tcp_port() (rand() % 65535 + 1024) |
NASL IPv6 Packet Forgery functions.
Provides IPv6 Packet Forgery functionalities The API set offers forgery for,
#define FIX | ( | n | ) | htons(n) |
#define rnd_tcp_port | ( | ) | (rand() % 65535 + 1024) |
#define UNFIX | ( | n | ) | ntohs(n) |
Print IPv6 Header.
[in] | lexic | Lexical context of NASL interpreter. |
Print TCP/IPv6 packet.
[in] | lexic | Lexical context of NASL interpreter. |
Forge IPv6 packet.
[in] | lexic | Lexical context of NASL interpreter. |
Forge TCP packet.
[in] | lexic | Lexical context of NASL interpreter. |
Obtain IPv6 header element.
[in] | lexic | Lexical context of NASL interpreter. |
Get TCP Header element.
[in] | lexic | Lexical context of NASL interpreter. |
Send forged IPv6 Packet.
[in] | lexic | Lexical context of NASL interpreter. |
Performs TCP Connect to test if host is alive.
[in] | lexic | Lexical context of NASL interpreter. |
Set IPv6 header element.
[in] | lexic | Lexical context of NASL interpreter. |
Set TCP Header element.
[in] | lexic | Lexical context of NASL interpreter. |