OpenVAS Libraries  9.0.1
Data Structures | Macros | Functions
nasl_builtin_openvas_tcp_scanner.c File Reference
#include <unistd.h>
#include <fcntl.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <errno.h>
#include <sys/time.h>
#include <sys/resource.h>
#include <netdb.h>
#include <glib.h>
#include "../misc/arglists.h"
#include "../misc/plugutils.h"
#include "../misc/prefs.h"
#include "../misc/openvas_logging.h"
#include "../misc/network.h"
#include "nasl_lex_ctxt.h"
#include <limits.h>
#include <math.h>

Data Structures

struct  grab_socket_t
 

Macros

#define GRAB_MAX_SOCK   1024
 
#define GRAB_MIN_SOCK   32
 
#define GRAB_MAX_SOCK_SAFE   128
 
#define MAX_PASS_NB   16
 
#define MAXINT   0x7fffffffL
 
#define DIFFTV(t1, t2)   (t1.tv_sec - t2.tv_sec + (t1.tv_usec - t2.tv_usec) / 1000000)
 
#define DIFFTVu(t1, t2)   ((t1.tv_sec - t2.tv_sec) * 1000000.0 + (t1.tv_usec - t2.tv_usec))
 
#define GRAB_SOCKET_UNUSED   0
 
#define GRAB_SOCKET_OPENING   1
 
#define GRAB_SOCKET_OPEN   2
 
#define GRAB_PORT_UNKNOWN   0
 
#define GRAB_PORT_CLOSED   1
 
#define GRAB_PORT_OPEN   2
 
#define GRAB_PORT_SILENT   3
 
#define GRAB_PORT_REJECTED   4
 
#define GRAB_PORT_NOT_TESTED   254
 
#define GRAB_PORT_TESTING   255
 
#define DEBUG   0
 
#define COMPUTE_RTT
 
#define MAX_SANE_RTT   2000000 /* micro-seconds */
 

Functions

tree_cellplugin_run_openvas_tcp_scanner (lex_ctxt *lexic)
 

Macro Definition Documentation

◆ COMPUTE_RTT

#define COMPUTE_RTT

◆ DEBUG

#define DEBUG   0

◆ DIFFTV

#define DIFFTV (   t1,
  t2 
)    (t1.tv_sec - t2.tv_sec + (t1.tv_usec - t2.tv_usec) / 1000000)

◆ DIFFTVu

#define DIFFTVu (   t1,
  t2 
)    ((t1.tv_sec - t2.tv_sec) * 1000000.0 + (t1.tv_usec - t2.tv_usec))

◆ GRAB_MAX_SOCK

#define GRAB_MAX_SOCK   1024

◆ GRAB_MAX_SOCK_SAFE

#define GRAB_MAX_SOCK_SAFE   128

◆ GRAB_MIN_SOCK

#define GRAB_MIN_SOCK   32

◆ GRAB_PORT_CLOSED

#define GRAB_PORT_CLOSED   1

◆ GRAB_PORT_NOT_TESTED

#define GRAB_PORT_NOT_TESTED   254

◆ GRAB_PORT_OPEN

#define GRAB_PORT_OPEN   2

◆ GRAB_PORT_REJECTED

#define GRAB_PORT_REJECTED   4

◆ GRAB_PORT_SILENT

#define GRAB_PORT_SILENT   3

◆ GRAB_PORT_TESTING

#define GRAB_PORT_TESTING   255

◆ GRAB_PORT_UNKNOWN

#define GRAB_PORT_UNKNOWN   0

◆ GRAB_SOCKET_OPEN

#define GRAB_SOCKET_OPEN   2

◆ GRAB_SOCKET_OPENING

#define GRAB_SOCKET_OPENING   1

◆ GRAB_SOCKET_UNUSED

#define GRAB_SOCKET_UNUSED   0

◆ MAX_PASS_NB

#define MAX_PASS_NB   16

◆ MAX_SANE_RTT

#define MAX_SANE_RTT   2000000 /* micro-seconds */

◆ MAXINT

#define MAXINT   0x7fffffffL

Function Documentation

◆ plugin_run_openvas_tcp_scanner()

tree_cell* plugin_run_openvas_tcp_scanner ( lex_ctxt lexic)