OpenVAS Libraries  8.0.3
Data Structures | Macros | Functions
ids_send.c File Reference
#include <stdarg.h>
#include <string.h>
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <arpa/inet.h>
#include "arglists.h"
#include "bpf_share.h"
#include "ids_send.h"
#include "network.h"
#include "pcap_openvas.h"
#include "plugutils.h"
#include "openvas_logging.h"
#include "support.h"

Data Structures

struct  ip_packet
 
struct  tcp_packet
 
struct  ipv6_header
 
struct  pseudohdr
 
union  sockaddr_u
 

Macros

#define FIX(n)   htons(n)
 
#define UNFIX(n)   ntohs(n)
 
#define TCP_FLAG_RST   0x0004
 
#define TCP_FLAG_ACK   0x0010
 
#define TCP_FLAG_PUSH   0x0008
 

Functions

int ids_send (int fd, void *buf0, int n, int method)
 
int ids_open_sock_tcp (struct arglist *args, int port, int method, int timeout)
 

Macro Definition Documentation

#define FIX (   n)    htons(n)
Todo:
: It still needs to be taken care BSD_BYTE_ORDERING gets here if defined (e.g. by config.h)
#define TCP_FLAG_ACK   0x0010
#define TCP_FLAG_PUSH   0x0008
#define TCP_FLAG_RST   0x0004
#define UNFIX (   n)    ntohs(n)

Function Documentation

int ids_open_sock_tcp ( struct arglist args,
int  port,
int  method,
int  timeout 
)
int ids_send ( int  fd,
void *  buf0,
int  n,
int  method 
)