OpenVAS Libraries
8.0.7
|
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 "bpf_share.h"
#include "pcap_openvas.h"
#include "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) |
Variables | |
int | n |
register long | sum = 0 |
u_short | odd_byte = 0 |
answer = (int) ~sum | |
NASL IPv6 Packet Forgery functions.
Provides IPv6 Packet Forgery functionalities The API set offers forgery for,
#define rnd_tcp_port | ( | ) | (rand() % 65535 + 1024) |
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. |
if | ( | n | = = 1 | ) |
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. |
return | ( | answer | ) |
Set IPv6 header element.
[in] | lexic | Lexical context of NASL interpreter. |
Set TCP Header element.
[in] | lexic | Lexical context of NASL interpreter. |
while | ( | n | , |
1 | |||
) |
answer = (int) ~sum |
int n |
u_short odd_byte = 0 |
sum = 0 |