forked from Vasfed/nginx_ipset_blacklist
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathipset_test_rpc.h
69 lines (52 loc) · 1.52 KB
/
ipset_test_rpc.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
/*
* Please do not edit this file.
* It was generated using rpcgen.
*/
#ifndef _IPSET_TEST_RPC_H_RPCGEN
#define _IPSET_TEST_RPC_H_RPCGEN
#include <rpc/rpc.h>
#ifdef __cplusplus
extern "C" {
#endif
struct ip4_addr {
uint32_t addr;
};
typedef struct ip4_addr ip4_addr;
struct ip6_addr {
u_char addr[16];
};
typedef struct ip6_addr ip6_addr;
struct test_ipaddr_in_ipset_req {
char setname[32];
int af;
ip4_addr ip4addr;
ip6_addr ip6addr;
};
typedef struct test_ipaddr_in_ipset_req test_ipaddr_in_ipset_req;
#define IPSET_TEST_PROG 0x200000f1
#define IPSET_TEST_VERS 1
#if defined(__STDC__) || defined(__cplusplus)
#define TEST_IPADDR_IN_IPSET 1
extern int * test_ipaddr_in_ipset_1(test_ipaddr_in_ipset_req *, CLIENT *);
extern int * test_ipaddr_in_ipset_1_svc(test_ipaddr_in_ipset_req *, struct svc_req *);
extern int ipset_test_prog_1_freeresult (SVCXPRT *, xdrproc_t, caddr_t);
#else /* K&R C */
#define TEST_IPADDR_IN_IPSET 1
extern int * test_ipaddr_in_ipset_1();
extern int * test_ipaddr_in_ipset_1_svc();
extern int ipset_test_prog_1_freeresult ();
#endif /* K&R C */
/* the xdr functions */
#if defined(__STDC__) || defined(__cplusplus)
extern bool_t xdr_ip4_addr (XDR *, ip4_addr*);
extern bool_t xdr_ip6_addr (XDR *, ip6_addr*);
extern bool_t xdr_test_ipaddr_in_ipset_req (XDR *, test_ipaddr_in_ipset_req*);
#else /* K&R C */
extern bool_t xdr_ip4_addr ();
extern bool_t xdr_ip6_addr ();
extern bool_t xdr_test_ipaddr_in_ipset_req ();
#endif /* K&R C */
#ifdef __cplusplus
}
#endif
#endif /* !_IPSET_TEST_RPC_H_RPCGEN */