/home/tomh/openhip/hip-0.5/src/util/usermode-status.c File Reference

#include <stdio.h>
#include <unistd.h>
#include <sys/socket.h>
#include <sys/uio.h>
#include <hip/hip_types.h>
#include <sys/types.h>
#include <string.h>
#include <errno.h>
#include <netinet/in.h>
#include <hip/hip_service.h>
#include <hip/hip_status.h>

Classes

struct  _cent

Defines

#define PRINTPTR(type, fmt, a, b)   a = (type*) b; printf(fmt, *a); a++;

Typedefs

typedef _cent cent

Functions

int cmd_to_code (char *cmd)
void print_help ()
int read_response (int s, char *buff, int *len, int time)
void print_header (int code)
int parse_response (char *buff, int len)
int main (int argc, char **argv)
void print_ipv6 (struct sockaddr_storage *addr)

Variables

cent commands []

Define Documentation

#define PRINTPTR ( type,
fmt,
a,
 )     a = (type*) b; printf(fmt, *a); a++;


Typedef Documentation

typedef struct _cent cent


Function Documentation

int cmd_to_code ( char *  cmd  ) 

int main ( int  argc,
char **  argv 
)

int parse_response ( char *  buff,
int  len 
)

void print_header ( int  code  ) 

void print_help (  ) 

void print_ipv6 ( struct sockaddr_storage *  addr  ) 

int read_response ( int  s,
char *  buff,
int *  len,
int  time 
)


Variable Documentation

cent commands[]

Initial value:

 {      { "threads", STAT_THREADS },
                        { "sadb", STAT_SADB },
                        { "dst", STAT_DST },
                        { "lsi", STAT_LSI },
                        { "peers", STAT_PEERS },
                        { "ids", STAT_IDS },
                        { 0, STAT_MAX},
                }


Generated on Mon Oct 22 11:43:44 2007 for OpenHIP by  doxygen 1.5.1