nfs-ganesha 1.4
|
#include "ganesha_rpc.h"
#include "config_parsing.h"
#include "nfs_core.h"
#include "nfs_exports.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_name_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_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_get_6 () |
void | test_remove_6 () |
int | main () |
Variables | |
nfs_parameter_t | nfs_param |
char | out [MAXHOSTNAMELEN] |
sockaddr_t | ipv4a |
sockaddr_t | ipv4b |
sockaddr_t | ipv4c |
char | name4a [MAXHOSTNAMELEN] |
char | name4c [MAXHOSTNAMELEN] |
sockaddr_t | ipv6a |
sockaddr_t | ipv6b |
sockaddr_t | ipv6c |
char | name6a [MAXHOSTNAMELEN] |
char | name6c [MAXHOSTNAMELEN] |
#define CMP | ( | a, | |
b, | |||
n, | |||
msg | |||
) |
do { \ if (strncmp(a, b, n) != 0) { \ printf(msg "\n"); \ exit(1); \ } \ } while(0)
Definition at line 25 of file test_nfs_ip_name.c.
#define EQUALS | ( | a, | |
b, | |||
msg, | |||
args... | |||
) |
do { \ if (a != b) { \ printf(msg "\n", ## args); \ exit(1); \ } \ } while(0)
Definition at line 18 of file test_nfs_ip_name.c.
#define MOUNT_PROGRAM 100005 |
Definition at line 13 of file test_nfs_ip_name.c.
void create_ipv4 | ( | char * | ip, |
int | port, | ||
struct sockaddr_in * | addr | ||
) |
Definition at line 48 of file test_nfs_ip_name.c.
void create_ipv6 | ( | char * | ip, |
int | port, | ||
struct sockaddr_in6 * | addr | ||
) |
Definition at line 56 of file test_nfs_ip_name.c.
void create_svc_req | ( | struct svc_req * | req, |
rpcvers_t | ver, | ||
rpcprog_t | prog, | ||
rpcproc_t | proc | ||
) |
Definition at line 64 of file test_nfs_ip_name.c.
void init | ( | ) |
Definition at line 91 of file test_nfs_ip_name.c.
int main | ( | void | ) |
Definition at line 250 of file test_nfs_ip_name.c.
void nfs_set_ip_name_param_default | ( | ) |
Definition at line 72 of file test_nfs_ip_name.c.
void* rpc_tcp_socket_manager_thread | ( | void * | Arg | ) |
Definition at line 43 of file test_nfs_ip_name.c.
void test_add | ( | ) |
Definition at line 137 of file test_nfs_ip_name.c.
void test_add_6 | ( | ) |
Definition at line 209 of file test_nfs_ip_name.c.
void test_get | ( | ) |
Definition at line 154 of file test_nfs_ip_name.c.
void test_get_6 | ( | ) |
Definition at line 226 of file test_nfs_ip_name.c.
void test_not_found | ( | ) |
Definition at line 108 of file test_nfs_ip_name.c.
void test_not_found_6 | ( | ) |
Definition at line 180 of file test_nfs_ip_name.c.
void test_not_found_bc | ( | ) |
Definition at line 115 of file test_nfs_ip_name.c.
void test_not_found_bc_6 | ( | ) |
Definition at line 187 of file test_nfs_ip_name.c.
void test_not_found_c | ( | ) |
Definition at line 122 of file test_nfs_ip_name.c.
void test_not_found_c_6 | ( | ) |
Definition at line 194 of file test_nfs_ip_name.c.
void test_not_found_none | ( | ) |
Definition at line 129 of file test_nfs_ip_name.c.
void test_not_found_none_6 | ( | ) |
Definition at line 201 of file test_nfs_ip_name.c.
void test_remove | ( | ) |
Definition at line 160 of file test_nfs_ip_name.c.
void test_remove_6 | ( | ) |
Definition at line 232 of file test_nfs_ip_name.c.
Definition at line 32 of file test_nfs_ip_name.c.
Definition at line 33 of file test_nfs_ip_name.c.
Definition at line 34 of file test_nfs_ip_name.c.
Definition at line 37 of file test_nfs_ip_name.c.
Definition at line 38 of file test_nfs_ip_name.c.
Definition at line 39 of file test_nfs_ip_name.c.
char name4a[MAXHOSTNAMELEN] |
Definition at line 35 of file test_nfs_ip_name.c.
char name4c[MAXHOSTNAMELEN] |
Definition at line 36 of file test_nfs_ip_name.c.
char name6a[MAXHOSTNAMELEN] |
Definition at line 40 of file test_nfs_ip_name.c.
char name6c[MAXHOSTNAMELEN] |
Definition at line 41 of file test_nfs_ip_name.c.
Definition at line 14 of file test_nfs_ip_name.c.
char out[MAXHOSTNAMELEN] |
Definition at line 16 of file test_nfs_ip_name.c.