#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 PRINTPTR | ( | type, | |||
| fmt, | |||||
| a, | |||||
| b | ) | a = (type*) b; printf(fmt, *a); a++; |
| 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 | |||
| ) |
Initial value:
{ { "threads", STAT_THREADS },
{ "sadb", STAT_SADB },
{ "dst", STAT_DST },
{ "lsi", STAT_LSI },
{ "peers", STAT_PEERS },
{ "ids", STAT_IDS },
{ 0, STAT_MAX},
}
1.5.1