N-sim
Emulation and simulation of
Wireless Sensor Networks



   Home


   Project Page


   Download


   CVS



   Installation


   Configuration


   Plug-ins




 Hosted by
SourceForge.net Logo

/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_handleipq_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
 

Definition at line 61 of file libipq.c.


Enumeration Type Documentation

anonymous enum
 

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
 

Definition at line 207 of file libipq.c.

Referenced by packet_usage().

int ipq_ctl const struct ipq_handle h,
int  request,
  ...
 

Definition at line 357 of file libipq.c.

int ipq_destroy_handle struct ipq_handle h  ) 
 

Definition at line 258 of file libipq.c.

Referenced by packet_usage().

char* ipq_errstr void   ) 
 

Definition at line 362 of file libipq.c.

Referenced by ipq_perror().

int ipq_get_msgerr const unsigned char *  buf  ) 
 

Definition at line 300 of file libipq.c.

Referenced by packet_usage().

ipq_packet_msg_t* ipq_get_packet const unsigned char *  buf  ) 
 

Definition at line 307 of file libipq.c.

Referenced by packet_usage().

int ipq_message_type const unsigned char *  buf  ) 
 

Definition at line 295 of file libipq.c.

Referenced by packet_usage().

void ipq_perror const char *  s  ) 
 

Definition at line 367 of file libipq.c.

ssize_t ipq_read const struct ipq_handle h,
unsigned char *  buf,
size_t  len,
int  timeout
 

Definition at line 289 of file libipq.c.

Referenced by packet_usage().

int ipq_set_mode const struct ipq_handle h,
u_int8_t  mode,
size_t  range
 

Definition at line 267 of file libipq.c.

Referenced by packet_usage().

int ipq_set_verdict const struct ipq_handle h,
ipq_id_t  id,
unsigned int  verdict,
size_t  data_len,
unsigned char *  buf
 

Definition at line 312 of file libipq.c.

Referenced by packet_usage().


Variable Documentation

struct ipq_errmap_t ipq_errmap[]
 


© 2007, Los Alamos National Security, LLC.