nfs-ganesha 1.4
Defines | Functions | Variables

test_nfs_ip_stats.c File Reference

#include "ganesha_rpc.h"
#include "config_parsing.h"
#include "nfs_stat.h"
#include "nfs_ip_stats.h"
#include <stdlib.h>
#include <string.h>
#include <arpa/inet.h>
#include "../MainNFSD/nfs_init.h"
#include "nfs23.h"

Go to the source code of this file.

Defines

#define MOUNT_PROGRAM   100005
#define EQUALS(a, b, msg, args...)
#define CMP(a, b, n, msg)

Functions

void * rpc_tcp_socket_manager_thread (void *Arg)
void create_ipv4 (char *ip, int port, struct sockaddr_in *addr)
void create_ipv6 (char *ip, int port, struct sockaddr_in6 *addr)
void create_svc_req (struct svc_req *req, rpcvers_t ver, rpcprog_t prog, rpcproc_t proc)
void nfs_set_ip_stats_param_default ()
void init ()
void test_not_found ()
void test_not_found_bc ()
void test_not_found_c ()
void test_not_found_none ()
void test_add ()
void test_incr ()
void test_get ()
void test_remove ()
void test_not_found_6 ()
void test_not_found_bc_6 ()
void test_not_found_c_6 ()
void test_not_found_none_6 ()
void test_add_6 ()
void test_incr_6 ()
void test_get_6 ()
void test_remove_6 ()
int main ()

Variables

hash_table_tstats [1]
hash_table_tipstats
nfs_ip_stats_tnfs_ip_stats
nfs_parameter_t nfs_param
pool_tip_stats_pool
sockaddr_t ipv4a
sockaddr_t ipv4b
sockaddr_t ipv4c
sockaddr_t ipv6a
sockaddr_t ipv6b
sockaddr_t ipv6c

Define Documentation

#define CMP (   a,
  b,
  n,
  msg 
)
Value:
do {               \
  if (strncmp(a, b, n) != 0) {               \
      printf(msg "\n");                           \
      exit(1);                                    \
    }                                             \
} while(0)

Definition at line 27 of file test_nfs_ip_stats.c.

#define EQUALS (   a,
  b,
  msg,
  args... 
)
Value:
do {             \
  if (a != b) {                             \
      printf(msg "\n", ## args);                          \
      exit(1);                                    \
    }                                             \
} while(0)

Definition at line 20 of file test_nfs_ip_stats.c.

#define MOUNT_PROGRAM   100005

Definition at line 12 of file test_nfs_ip_stats.c.


Function Documentation

void create_ipv4 ( char *  ip,
int  port,
struct sockaddr_in *  addr 
)

Definition at line 46 of file test_nfs_ip_stats.c.

void create_ipv6 ( char *  ip,
int  port,
struct sockaddr_in6 *  addr 
)

Definition at line 54 of file test_nfs_ip_stats.c.

void create_svc_req ( struct svc_req *  req,
rpcvers_t  ver,
rpcprog_t  prog,
rpcproc_t  proc 
)

Definition at line 62 of file test_nfs_ip_stats.c.

void init ( )

Definition at line 87 of file test_nfs_ip_stats.c.

int main ( void  )

Definition at line 323 of file test_nfs_ip_stats.c.

void nfs_set_ip_stats_param_default ( )

Definition at line 70 of file test_nfs_ip_stats.c.

void* rpc_tcp_socket_manager_thread ( void *  Arg)

Definition at line 41 of file test_nfs_ip_stats.c.

void test_add ( )

Definition at line 144 of file test_nfs_ip_stats.c.

void test_add_6 ( )

Definition at line 250 of file test_nfs_ip_stats.c.

void test_get ( )

Definition at line 184 of file test_nfs_ip_stats.c.

void test_get_6 ( )

Definition at line 290 of file test_nfs_ip_stats.c.

void test_incr ( )

Definition at line 159 of file test_nfs_ip_stats.c.

void test_incr_6 ( )

Definition at line 265 of file test_nfs_ip_stats.c.

void test_not_found ( )

Definition at line 111 of file test_nfs_ip_stats.c.

void test_not_found_6 ( )

Definition at line 217 of file test_nfs_ip_stats.c.

void test_not_found_bc ( )

Definition at line 119 of file test_nfs_ip_stats.c.

void test_not_found_bc_6 ( )

Definition at line 225 of file test_nfs_ip_stats.c.

void test_not_found_c ( )

Definition at line 127 of file test_nfs_ip_stats.c.

void test_not_found_c_6 ( )

Definition at line 233 of file test_nfs_ip_stats.c.

void test_not_found_none ( )

Definition at line 135 of file test_nfs_ip_stats.c.

void test_not_found_none_6 ( )

Definition at line 241 of file test_nfs_ip_stats.c.

void test_remove ( )

Definition at line 199 of file test_nfs_ip_stats.c.

void test_remove_6 ( )

Definition at line 305 of file test_nfs_ip_stats.c.


Variable Documentation

Definition at line 18 of file test_nfs_ip_stats.c.

Definition at line 15 of file test_nfs_ip_stats.c.

Definition at line 34 of file test_nfs_ip_stats.c.

Definition at line 35 of file test_nfs_ip_stats.c.

Definition at line 36 of file test_nfs_ip_stats.c.

Definition at line 37 of file test_nfs_ip_stats.c.

Definition at line 38 of file test_nfs_ip_stats.c.

Definition at line 39 of file test_nfs_ip_stats.c.

Definition at line 16 of file test_nfs_ip_stats.c.

Definition at line 17 of file test_nfs_ip_stats.c.

Definition at line 14 of file test_nfs_ip_stats.c.