]> rtime.felk.cvut.cz Git - frescor/fwp.git/blob - fwp/lib/core/fwp_confdefs.h
Added support for contract negotiation
[frescor/fwp.git] / fwp / lib / core / fwp_confdefs.h
1 #ifndef _FWP_CONFDEFS_H
2 #define _FWP_CONFDEFS_H
3
4 #include "fwp_conf.h"
5
6 /** Number of ACs */
7 #ifndef CONFUGURE_FWP_AC_NUM
8 #define CONFIGURE_FWP_AC_NUM    4
9 #endif
10
11 /* Size of message queue (in message units). MUST BE POWER OF 2!! */
12 #ifndef CONFIGURE_FWP_MSGQ_SIZE
13 #define CONFIGURE_FWP_MSGQ_SIZE 32 
14 #endif
15
16 /* Maximal number of fwp vres per application. */
17 #ifndef CONFIGURE_FWP_VRES_MAXIMUM
18 #define CONFIGURE_FWP_VRES_MAXIMUM 20
19 #endif
20
21 /* Maximal number of fwp contract in contract table */
22 #ifndef CONFIGURE_FWP_CONTRACTS_MAXIMUM 
23 #define CONFIGURE_FWP_CONTRACTS_MAXIMUM 50
24 #endif
25
26 /* Maximal number of fwp endpoint per application. */
27 #ifndef CONFIGURE_FWP_ENDPOINTS_MAXIMUM 
28 #define CONFIGURE_FWP_ENDPOINTS_MAXIMUM 50
29 #endif
30
31 /** Turn on/off FWP mnanagement */
32 #ifndef CONFIGURE_FWP_MNGT
33 #define CONFIGURE_FWP_MNGT 1
34 #endif
35
36 /** IP Address of interface FWP operates on */
37 //#ifndef CONFIGURE_FWP_MY_ADDR
38 //#define CONFIGURE_FWP_MY_ADDR "127.0.0.1"
39 //#endif
40
41 #ifndef CONFIGURE_FWP_MY_STREAM_ID
42 #define CONFIGURE_FWP_MY_STREAM_ID 0
43 #endif
44
45 //#ifndef CONFIGURE_FWP_MNGR_ADDR
46 //#define CONFIGURE_FWP_MNGR_ADDR "255.255.255.255"
47 //#endif
48
49 #ifndef CONFIGURE_FWP_MNGR_STREAM_ID
50 #define CONFIGURE_FWP_MNGR_STREAM_ID 3000
51 #endif
52
53 fwp_configuration_table_t fwp_configuration = {
54         CONFIGURE_FWP_VRES_MAXIMUM,
55         CONFIGURE_FWP_ENDPOINTS_MAXIMUM,
56         CONFIGURE_FWP_MNGT,
57 #ifdef CONFIGURE_FWP_MY_ADDR
58         CONFIGURE_FWP_MY_ADDR,
59 #else
60         FWP_MY_ADDR_DEFAULT,
61 #endif
62         CONFIGURE_FWP_MY_STREAM_ID,
63 #ifdef CONFIGURE_FWP_MNGR_ADDR
64         CONFIGURE_FWP_MNGR_ADDR,
65 #else
66         FWP_MNGR_ADDR_DEFAULT,
67 #endif
68         CONFIGURE_FWP_MNGR_STREAM_ID,
69         0,
70         0
71 };
72
73
74 #endif /*_FWP_CONFDEFS_H*/