OpenVAS Libraries  8.0.3
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 "nvt_categories.h"
#include "../misc/plugutils.h"
#include "../misc/prefs.h"
#include "../misc/openvas_logging.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

#define COMPUTE_RTT
#define DEBUG   0
#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_MAX_SOCK   1024
#define GRAB_MAX_SOCK_SAFE   128
#define GRAB_MIN_SOCK   32
#define GRAB_PORT_CLOSED   1
#define GRAB_PORT_NOT_TESTED   254
#define GRAB_PORT_OPEN   2
#define GRAB_PORT_REJECTED   4
#define GRAB_PORT_SILENT   3
#define GRAB_PORT_TESTING   255
#define GRAB_PORT_UNKNOWN   0
#define GRAB_SOCKET_OPEN   2
#define GRAB_SOCKET_OPENING   1
#define GRAB_SOCKET_UNUSED   0
#define MAX_PASS_NB   16
#define MAX_SANE_RTT   2000000 /* micro-seconds */
#define MAXINT   0x7fffffffL

Function Documentation

tree_cell* plugin_run_openvas_tcp_scanner ( lex_ctxt lexic)