OpenVAS Libraries  9.0.1
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

◆ FIX

#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)

◆ TCP_FLAG_ACK

#define TCP_FLAG_ACK   0x0010

◆ TCP_FLAG_PUSH

#define TCP_FLAG_PUSH   0x0008

◆ TCP_FLAG_RST

#define TCP_FLAG_RST   0x0004

◆ UNFIX

#define UNFIX (   n)    ntohs(n)

Function Documentation

◆ ids_open_sock_tcp()

int ids_open_sock_tcp ( struct arglist args,
int  port,
int  method,
int  timeout 
)

◆ ids_send()

int ids_send ( int  fd,
void *  buf0,
int  n,
int  method 
)