1 /*	$Id: libarms_param.h 20961 2012-01-31 05:31:02Z m-oki $	*/
2 
3 /*
4  * Copyright (c) 2012, Internet Initiative Japan, Inc.
5  * All rights reserved.
6  *
7  * Redistribution and use in source and binary forms, with or without
8  * modification, are permitted provided that the following conditions
9  * are met:
10  *
11  * 1. Redistributions of source code must retain the above copyright
12  *    notice, this list of conditions and the following disclaimer.
13  * 2. Redistributions in binary form must reproduce the above copyright
14  *    notice, this list of conditions and the following disclaimer in the
15  *    documentation and/or other materials provided with the distribution.
16  *
17  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
19  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
20  * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
21  * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
22  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
23  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
24  * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
25  * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
26  * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
27  * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28  */
29 
30 #ifndef __LIBARMS_PARAM_H__
31 #define __LIBARMS_PARAM_H__
32 
33 #if defined(ARMS_DEBUG)
34 #define LOG_BUFSIZ		4096
35 #else /* defined(ARMS_DEBUG) */
36 #define LOG_BUFSIZ		128
37 #endif /* defined(ARMS_DEBUG) */
38 #define LOG_RING_SIZE		256
39 #define AXP_BUILD_BUFSIZ	1024 * 1024
40 #define	SEND_BUFSIZ		1024
41 #define RECV_BUFSIZ		1024
42 #define	MAX_RS_LIST		5
43 #define	MAX_LS_MDCONFIG		2048
44 #define	CDATA_HDR		"<![CDATA["
45 #define	CDATA_TRAIL		"]]>"
46 #define DEFAULT_XML_SIZE	1024
47 #define	RDESC_LEN		256
48 #define	SA_ADDR_LEN		256
49 #define	RS_ADDR_LEN		256
50 #define	TR_MAX_ARG		256
51 #define PUSH_MAX_MSG		64
52 #define TR_LIMIT		10
53 
54 #define	LS_RETRY_MAX		3
55 #define	LS_RETRY_INT		3
56 #ifndef LLTIMEOUT
57 #define	LLTIMEOUT		30
58 #endif
59 
60 #define	TMP_MAX_FACTOR		1
61 #define	TMP_INT_FACTOR		1
62 #define	SHORT_MAX_FACTOR	500
63 #define	SHORT_INT_FACTOR	120
64 #define	LONG_MAX_FACTOR		30
65 #define	LONG_INT_FACTOR		120
66 
67 #define	LS_PULL_RETRY_MAX	3
68 #define	LS_PULL_RETRY_INT	10
69 
70 #define	MAX_DISTIDSTR		256
71 
72 #define	EVT_TICK_RES		1
73 #define	MAX_EVENT		1024
74 #define	HTTPBUFSIZE		8192
75 
76 /* lsconfig */
77 #define	MAX_CONFIG_LEN		5192
78 #define	LINE_LEN		(256+1)
79 
80 /* miconf */
81 #define CONF_MAX_LS_LIST	5
82 #ifndef CONF_MAX_LINE_LIST
83 #define	CONF_MAX_LINE_LIST	5
84 #endif
85 #define	CONF_MAX_STR_LEN	256
86 
87 /* PUSH Transaction */
88 #define	TR_MAX_ARG		256
89 #define PUSH_READY_RMAX		30
90 #define PUSH_READY_RINT		1
91 
92 /* ARMS BUFFER */
93 #define ABUF_TMP_SIZ		1024
94 #define ABUF_REALLOC_EXTRA_CHUNK 512
95 
96 /* MD command */
97 #define RESULT_LEN		1024
98 
99 #endif /* __LIBARMS_PARAM_H__ */
100