|
|
|
|
/home/brennan/n-sim/Vaike/linux/system-addons/networking/libipq/libipq.c File Reference#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <sys/time.h>
#include <sys/types.h>
#include <libipq/libipq.h>
Go to the source code of this file.
|
Classes |
struct | ipq_errmap_t |
Defines |
#define | IPQ_MAXERR IPQ_ERR_PROTOCOL |
Enumerations |
enum | {
IPQ_ERR_NONE = 0,
IPQ_ERR_IMPL,
IPQ_ERR_HANDLE,
IPQ_ERR_SOCKET,
IPQ_ERR_BIND,
IPQ_ERR_BUFFER,
IPQ_ERR_RECV,
IPQ_ERR_NLEOF,
IPQ_ERR_ADDRLEN,
IPQ_ERR_STRUNC,
IPQ_ERR_RTRUNC,
IPQ_ERR_NLRECV,
IPQ_ERR_SEND,
IPQ_ERR_SUPP,
IPQ_ERR_RECVBUF,
IPQ_ERR_TIMEOUT,
IPQ_ERR_PROTOCOL
} |
Functions |
ipq_handle * | ipq_create_handle (u_int32_t flags, u_int32_t protocol) |
int | ipq_destroy_handle (struct ipq_handle *h) |
int | ipq_set_mode (const struct ipq_handle *h, u_int8_t mode, size_t range) |
ssize_t | ipq_read (const struct ipq_handle *h, unsigned char *buf, size_t len, int timeout) |
int | ipq_message_type (const unsigned char *buf) |
int | ipq_get_msgerr (const unsigned char *buf) |
ipq_packet_msg_t * | ipq_get_packet (const unsigned char *buf) |
int | ipq_set_verdict (const struct ipq_handle *h, ipq_id_t id, unsigned int verdict, size_t data_len, unsigned char *buf) |
int | ipq_ctl (const struct ipq_handle *h, int request,...) |
char * | ipq_errstr (void) |
void | ipq_perror (const char *s) |
Variables |
ipq_errmap_t | ipq_errmap [] |
Define Documentation
#define IPQ_MAXERR IPQ_ERR_PROTOCOL |
|
Enumeration Type Documentation
|
- Enumerator:
-
IPQ_ERR_NONE |
|
IPQ_ERR_IMPL |
|
IPQ_ERR_HANDLE |
|
IPQ_ERR_SOCKET |
|
IPQ_ERR_BIND |
|
IPQ_ERR_BUFFER |
|
IPQ_ERR_RECV |
|
IPQ_ERR_NLEOF |
|
IPQ_ERR_ADDRLEN |
|
IPQ_ERR_STRUNC |
|
IPQ_ERR_RTRUNC |
|
IPQ_ERR_NLRECV |
|
IPQ_ERR_SEND |
|
IPQ_ERR_SUPP |
|
IPQ_ERR_RECVBUF |
|
IPQ_ERR_TIMEOUT |
|
IPQ_ERR_PROTOCOL |
|
Definition at line 42 of file libipq.c. |
Function Documentation
struct ipq_handle* ipq_create_handle |
( |
u_int32_t |
flags, |
|
|
u_int32_t |
protocol |
|
) |
|
|
int ipq_ctl |
( |
const struct ipq_handle * |
h, |
|
|
int |
request, |
|
|
|
... |
|
) |
|
|
char* ipq_errstr |
( |
void |
|
) |
|
|
int ipq_get_msgerr |
( |
const unsigned char * |
buf |
) |
|
|
ipq_packet_msg_t* ipq_get_packet |
( |
const unsigned char * |
buf |
) |
|
|
int ipq_message_type |
( |
const unsigned char * |
buf |
) |
|
|
void ipq_perror |
( |
const char * |
s |
) |
|
|
ssize_t ipq_read |
( |
const struct ipq_handle * |
h, |
|
|
unsigned char * |
buf, |
|
|
size_t |
len, |
|
|
int |
timeout |
|
) |
|
|
int ipq_set_mode |
( |
const struct ipq_handle * |
h, |
|
|
u_int8_t |
mode, |
|
|
size_t |
range |
|
) |
|
|
int ipq_set_verdict |
( |
const struct ipq_handle * |
h, |
|
|
ipq_id_t |
id, |
|
|
unsigned int |
verdict, |
|
|
size_t |
data_len, |
|
|
unsigned char * |
buf |
|
) |
|
|
Variable Documentation
|