Browse code

core: move version strings to a separate file

- moved version strings to variables (instead of macros) and in a
separate file (ver.c). This will require re-compiling only one
small file and re-linking on version or repository changes (e.g.
new commit or local uncommitted changes), instead of recompiling
main.c and core_cmd.c.
- more detailed info about the repository state is now available via
repo_hash (hash of the top commit) and repo_state (dirty or "").
- the core.version rpc reports now directly the version number
(complete with repository hash and state), without prefixing it
with "Server:", e.g.:
ser 3.0.99-dev1 (i386/linux) dd9681-dirty
instead of
Server: ser (3.0.99-dev1 (i386/freebsd)) d89437-dirty

Andrei Pelinescu-Onciul authored on 13/07/2010 17:59:26
Showing 1 changed files
1 1
deleted file mode 100644
... ...
@@ -1,356 +0,0 @@
1
-/*
2
- * $Id$
3
- *
4
- * version and compile flags macros 
5
- *
6
- *
7
- * Copyright (C) 2004 FhG Fokus
8
- *
9
- * This file is part of SIP-router, a free SIP server.
10
- *
11
- * SIP-router is free software; you can redistribute it and/or modify
12
- * it under the terms of the GNU General Public License as published by
13
- * the Free Software Foundation; either version 2 of the License, or
14
- * (at your option) any later version
15
- *
16
- * SIP-router is distributed in the hope that it will be useful,
17
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
18
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19
- * GNU General Public License for more details.
20
- *
21
- * You should have received a copy of the GNU General Public License 
22
- * along with this program; if not, write to the Free Software 
23
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
24
- */
25
-
26
-/*!
27
- * \file
28
- * \brief SIP-router core :: version and compile flag macros
29
- * \ingroup core
30
- *
31
- * Module: \ref core
32
- */
33
-
34
-#ifndef version_h
35
-#define version_h
36
-
37
-#define SER_FULL_VERSION  NAME " " VERSION " (" ARCH "/" OS_QUOTED ")" 
38
-
39
-#ifdef STATS
40
-#define STATS_STR  "STATS: On"
41
-#else
42
-#define STATS_STR  "STATS: Off"
43
-#endif
44
-
45
-#ifdef USE_IPV6
46
-#define USE_IPV6_STR ", USE_IPV6"
47
-#else
48
-#define USE_IPV6_STR ""
49
-#endif
50
-
51
-#ifdef USE_TCP
52
-#define USE_TCP_STR ", USE_TCP"
53
-#else
54
-#define USE_TCP_STR ""
55
-#endif
56
-
57
-#ifdef USE_TLS
58
-#define USE_TLS_STR ", USE_TLS"
59
-#else 
60
-#define USE_TLS_STR ""
61
-#endif
62
-
63
-#ifdef USE_SCTP
64
-#define USE_SCTP_STR ", USE_SCTP"
65
-#else
66
-#define USE_SCTP_STR ""
67
-#endif
68
-
69
-#ifdef CORE_TLS
70
-#define CORE_TLS_STR ", CORE_TLS"
71
-#else 
72
-#define CORE_TLS_STR ""
73
-#endif
74
-
75
-#ifdef TLS_HOOKS
76
-#define TLS_HOOKS_STR ", TLS_HOOKS"
77
-#else 
78
-#define TLS_HOOKS_STR ""
79
-#endif
80
-
81
-
82
-#ifdef DISABLE_NAGLE
83
-#define DISABLE_NAGLE_STR ", DISABLE_NAGLE"
84
-#else
85
-#define DISABLE_NAGLE_STR ""
86
-#endif
87
-
88
-#ifdef USE_MCAST
89
-#define USE_MCAST_STR ", USE_MCAST"
90
-#else
91
-#define USE_MCAST_STR ""
92
-#endif
93
-
94
-
95
-#ifdef NO_DEBUG
96
-#define NO_DEBUG_STR ", NO_DEBUG"
97
-#else
98
-#define NO_DEBUG_STR ""
99
-#endif
100
-
101
-#ifdef NO_LOG
102
-#define NO_LOG_STR ", NO_LOG"
103
-#else
104
-#define NO_LOG_STR ""
105
-#endif
106
-
107
-#ifdef EXTRA_DEBUG
108
-#define EXTRA_DEBUG_STR ", EXTRA_DEBUG"
109
-#else
110
-#define EXTRA_DEBUG_STR ""
111
-#endif
112
-
113
-#ifdef DNS_IP_HACK
114
-#define DNS_IP_HACK_STR ", DNS_IP_HACK"
115
-#else
116
-#define DNS_IP_HACK_STR ""
117
-#endif
118
-
119
-#ifdef SHM_MEM
120
-#define SHM_MEM_STR ", SHM_MEM"
121
-#else
122
-#define SHM_MEM_STR ""
123
-#endif
124
-
125
-#ifdef SHM_MMAP
126
-#define SHM_MMAP_STR ", SHM_MMAP"
127
-#else
128
-#define SHM_MMAP_STR ""
129
-#endif
130
-
131
-#ifdef PKG_MALLOC
132
-#define PKG_MALLOC_STR ", PKG_MALLOC"
133
-#else
134
-#define PKG_MALLOC_STR ""
135
-#endif
136
-
137
-#ifdef F_MALLOC
138
-#define F_MALLOC_STR ", F_MALLOC"
139
-#else
140
-#define F_MALLOC_STR ""
141
-#endif
142
-
143
-#ifdef DL_MALLOC
144
-#define DL_MALLOC_STR ", DL_MALLOC"
145
-#else
146
-#define DL_MALLOC_STR ""
147
-#endif
148
-
149
-#ifdef SF_MALLOC
150
-#define SF_MALLOC_STR ", SF_MALLOC"
151
-#else
152
-#define SF_MALLOC_STR ""
153
-#endif
154
-
155
-#ifdef LL_MALLOC
156
-#define LL_MALLOC_STR ", LL_MALLOC"
157
-#else
158
-#define LL_MALLOC_STR ""
159
-#endif
160
-
161
-#ifdef USE_SHM_MEM
162
-#define USE_SHM_MEM_STR ", USE_SHM_MEM"
163
-#else
164
-#define USE_SHM_MEM_STR ""
165
-#endif
166
-
167
-#ifdef DBG_QM_MALLOC
168
-#define DBG_QM_MALLOC_STR ", DBG_QM_MALLOC"
169
-#else
170
-#define DBG_QM_MALLOC_STR ""
171
-#endif
172
-
173
-#ifdef DBG_F_MALLOC
174
-#define DBG_F_MALLOC_STR ", DBG_F_MALLOC"
175
-#else
176
-#define DBG_F_MALLOC_STR ""
177
-#endif
178
-
179
-#ifdef DEBUG_DMALLOC
180
-#define DEBUG_DMALLOC_STR ", DEBUG_DMALLOC"
181
-#else
182
-#define DEBUG_DMALLOC_STR ""
183
-#endif
184
-
185
-#ifdef DBG_SF_MALLOC
186
-#define DBG_SF_MALLOC_STR ", DBG_SF_MALLOC"
187
-#else
188
-#define DBG_SF_MALLOC_STR ""
189
-#endif
190
-
191
-#ifdef DBG_LL_MALLOC
192
-#define DBG_LL_MALLOC_STR ", DBG_SF_MALLOC"
193
-#else
194
-#define DBG_LL_MALLOC_STR ""
195
-#endif
196
-
197
-#ifdef TIMER_DEBUG
198
-#define TIMER_DEBUG_STR ", TIMER_DEBUG"
199
-#else
200
-#define TIMER_DEBUG_STR ""
201
-#endif
202
-
203
-#ifdef USE_FUTEX
204
-#define USE_FUTEX_STR ", USE_FUTEX"
205
-#else
206
-#define USE_FUTEX_STR ""
207
-#endif
208
-
209
-
210
-#ifdef FAST_LOCK
211
-#ifdef BUSY_WAIT
212
-#define FAST_LOCK_STR ", FAST_LOCK-BUSY_WAIT"
213
-#elif defined (ADAPTIVE_WAIT)
214
-#define FAST_LOCK_STR ", FAST_LOCK-ADAPTIVE_WAIT"
215
-#else
216
-#define FAST_LOCK_STR ", FAST_LOCK"
217
-#endif
218
-#else
219
-#define FAST_LOCK_STR ""
220
-#endif
221
-
222
-#ifdef USE_PTHREAD_MUTEX
223
-#define USE_PTHREAD_MUTEX_STR ", USE_PTHREAD_MUTEX"
224
-#else
225
-#define USE_PTHREAD_MUTEX_STR ""
226
-#endif
227
-
228
-#ifdef USE_POSIX_SEM
229
-#define USE_POSIX_SEM_STR ", USE_POSIX_SEM"
230
-#else
231
-#define USE_POSIX_SEM_STR ""
232
-#endif
233
-
234
-#ifdef USE_SYSV_SEM
235
-#define USE_SYSV_SEM_STR ", USE_SYSV_SEM"
236
-#else
237
-#define USE_SYSV_SEM_STR ""
238
-#endif
239
-
240
-#ifdef NOSMP
241
-#define NOSMP_STR "-NOSMP"
242
-#else
243
-#define NOSMP_STR ""
244
-#endif
245
-
246
-
247
-#ifdef USE_COMP
248
-#define USE_COMP_STR ", USE_COMP"
249
-#else
250
-#define USE_COMP_STR ""
251
-#endif
252
-
253
-
254
-#ifdef USE_DNS_CACHE
255
-#define USE_DNS_CACHE_STR ", USE_DNS_CACHE"
256
-#else
257
-#define USE_DNS_CACHE_STR ""
258
-#endif
259
-
260
-#ifdef USE_DNS_FAILOVER
261
-#define USE_DNS_FAILOVER_STR ", USE_DNS_FAILOVER"
262
-#else
263
-#define USE_DNS_FAILOVER_STR ""
264
-#endif
265
-
266
-#ifdef DNS_WATCHDOG_SUPPORT
267
-#define DNS_WATCHDOG_SUPPORT_STR ", DNS_WATCHDOG_SUPPORT"
268
-#else
269
-#define DNS_WATCHDOG_SUPPORT_STR ""
270
-#endif
271
-
272
-#ifdef USE_NAPTR
273
-#define USE_NAPTR_STR ", USE_NAPTR"
274
-#else
275
-#define USE_NAPTR_STR ""
276
-#endif
277
-
278
-#ifdef USE_DST_BLACKLIST
279
-#define USE_DST_BLACKLIST_STR ", USE_DST_BLACKLIST"
280
-#else
281
-#define USE_DST_BLACKLIST_STR ""
282
-#endif
283
-
284
-#ifdef NO_SIG_DEBUG
285
-#define NO_SIG_DEBUG_STR ", NO_SIG_DEBUG"
286
-#else
287
-#define NO_SIG_DEBUG_STR ""
288
-#endif
289
-
290
-#ifdef USE_STUN
291
-#define USE_STUN_STR ", USE_STUN"
292
-#else
293
-#define USE_STUN_STR ""
294
-#endif
295
-
296
-#ifdef HAVE_RESOLV_RES 
297
-#define HAVE_RESOLV_RES_STR ", HAVE_RESOLV_RES"
298
-#else
299
-#define HAVE_RESOLV_RES_STR ""
300
-#endif
301
-
302
-#ifdef HTTP_REPLY_HACK 
303
-#define HTTP_REPLY_HACK_STR ", HTTP_REPLY_HACK"
304
-#else
305
-#define HTTP_REPLY_HACK_STR ""
306
-#endif
307
-
308
-#ifdef QM_JOIN_FREE 
309
-#define QM_JOIN_FREE_STR ", QM_JOIN_FREE"
310
-#else
311
-#define QM_JOIN_FREE_STR ""
312
-#endif
313
-
314
-#ifdef SYSLOG_CALLBACK_SUPPORT 
315
-#define SYSLOG_CALLBACK_SUPPORT_STR, ", SYSLOG_CALLBACK_SUPPORT"
316
-#else
317
-#define SYSLOG_CALLBACK_SUPPORT_STR ""
318
-#endif
319
-
320
-#ifdef MYSQL_FAKE_NULL
321
-#define MYSQL_FAKE_NULL_STR, ", MYSQL_FAKE_NULL"
322
-#else
323
-#define MYSQL_FAKE_NULL_STR ""
324
-#endif
325
-
326
-#ifdef USE_DNS_CACHE_STATS
327
-#define USE_DNS_CACHE_STATS_STR ", USE_DNS_CACHE_STATS"
328
-#else
329
-#define USE_DNS_CACHE_STATS_STR ""
330
-#endif
331
-
332
-#ifdef USE_DST_BLACKLIST_STATS
333
-#define USE_DST_BLACKLIST_STATS_STR ", USE_DST_BLACKLIST_STATS"
334
-#else
335
-#define USE_DST_BLACKLIST_STATS_STR ""
336
-#endif
337
-
338
-#define SER_COMPILE_FLAGS \
339
-	STATS_STR EXTRA_DEBUG_STR USE_IPV6_STR USE_TCP_STR USE_TLS_STR \
340
-	USE_SCTP_STR CORE_TLS_STR TLS_HOOKS_STR \
341
-	USE_STUN_STR DISABLE_NAGLE_STR USE_MCAST_STR NO_DEBUG_STR NO_LOG_STR \
342
-	NO_SIG_DEBUG_STR DNS_IP_HACK_STR  SHM_MEM_STR SHM_MMAP_STR PKG_MALLOC_STR \
343
-	F_MALLOC_STR DL_MALLOC_STR SF_MALLOC_STR  LL_MALLOC_STR \
344
-	USE_SHM_MEM_STR \
345
-	DBG_QM_MALLOC_STR \
346
-	DBG_F_MALLOC_STR DEBUG_DMALLOC_STR DBG_SF_MALLOC_STR DBG_LL_MALLOC_STR \
347
-	TIMER_DEBUG_STR \
348
-	USE_FUTEX_STR \
349
-	FAST_LOCK_STR NOSMP_STR USE_PTHREAD_MUTEX_STR USE_POSIX_SEM_STR \
350
-	USE_SYSV_SEM_STR USE_COMP_STR USE_DNS_CACHE_STR USE_DNS_FAILOVER_STR \
351
-	DNS_WATCHDOG_SUPPORT_STR USE_NAPTR_STR USE_DST_BLACKLIST_STR \
352
-	HAVE_RESOLV_RES_STR HTTP_REPLY_HACK_STR SYSLOG_CALLBACK_SUPPORT_STR \
353
-	MYSQL_FAKE_NULL_STR USE_DST_BLACKLIST_STATS_STR USE_DNS_CACHE_STATS_STR
354
-
355
-
356
-#endif
Browse code

Documentation updates

These documentation files contains a lot of promises about future
development. I think that belongs to todo's, maybe not to the documentation.

oej authored on 22/10/2009 19:11:09
Showing 1 changed files
... ...
@@ -23,6 +23,14 @@
23 23
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
24 24
  */
25 25
 
26
+/*!
27
+ * \file
28
+ * \brief SIP-router core :: version and compile flag macros
29
+ * \ingroup core
30
+ *
31
+ * Module: \ref core
32
+ */
33
+
26 34
 #ifndef version_h
27 35
 #define version_h
28 36
 
Browse code

Doxygen updates (not done with this directory)

oej authored on 20/10/2009 20:20:22
Showing 1 changed files
... ...
@@ -6,19 +6,14 @@
6 6
  *
7 7
  * Copyright (C) 2004 FhG Fokus
8 8
  *
9
- * This file is part of ser, a free SIP server.
9
+ * This file is part of SIP-router, a free SIP server.
10 10
  *
11
- * ser is free software; you can redistribute it and/or modify
11
+ * SIP-router is free software; you can redistribute it and/or modify
12 12
  * it under the terms of the GNU General Public License as published by
13 13
  * the Free Software Foundation; either version 2 of the License, or
14 14
  * (at your option) any later version
15 15
  *
16
- * For a license to use the ser software under conditions
17
- * other than those described here, or to purchase support for this
18
- * software, please contact iptel.org by e-mail at the following addresses:
19
- *    info@iptel.org
20
- *
21
- * ser is distributed in the hope that it will be useful,
16
+ * SIP-router is distributed in the hope that it will be useful,
22 17
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
23 18
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
24 19
  * GNU General Public License for more details.
Browse code

core: remove VQ_MALLOC memory manager

attached patch removes the VQ_MALLOC memory manager from the
sip-router core. As discussed some time ago, this memory manager
doesn't provide a realloc implementation, and is thus not really
usable for the modules, as some of them needs this. We removed
this in kamailio in the last year, so far nobody missed it.

Signed-off-by: Andrei Pelinescu-Onciul <andrei@iptel.org>

Henning Westerholt authored on 17/03/2009 12:24:42 • Andrei Pelinescu-Onciul committed on 29/09/2009 17:03:41
Showing 1 changed files
... ...
@@ -131,12 +131,6 @@
131 131
 #define PKG_MALLOC_STR ""
132 132
 #endif
133 133
 
134
-#ifdef VQ_MALLOC
135
-#define VQ_MALLOC_STR ", VQ_MALLOC"
136
-#else
137
-#define VQ_MALLOC_STR ""
138
-#endif
139
-
140 134
 #ifdef F_MALLOC
141 135
 #define F_MALLOC_STR ", F_MALLOC"
142 136
 #else
... ...
@@ -343,7 +337,7 @@
343 337
 	USE_SCTP_STR CORE_TLS_STR TLS_HOOKS_STR \
344 338
 	USE_STUN_STR DISABLE_NAGLE_STR USE_MCAST_STR NO_DEBUG_STR NO_LOG_STR \
345 339
 	NO_SIG_DEBUG_STR DNS_IP_HACK_STR  SHM_MEM_STR SHM_MMAP_STR PKG_MALLOC_STR \
346
-	VQ_MALLOC_STR F_MALLOC_STR DL_MALLOC_STR SF_MALLOC_STR  LL_MALLOC_STR \
340
+	F_MALLOC_STR DL_MALLOC_STR SF_MALLOC_STR  LL_MALLOC_STR \
347 341
 	USE_SHM_MEM_STR \
348 342
 	DBG_QM_MALLOC_STR \
349 343
 	DBG_F_MALLOC_STR DEBUG_DMALLOC_STR DBG_SF_MALLOC_STR DBG_LL_MALLOC_STR \
Browse code

- core sctp support

Andrei Pelinescu-Onciul authored on 08/08/2008 20:47:53
Showing 1 changed files
... ...
@@ -57,6 +57,12 @@
57 57
 #define USE_TLS_STR ""
58 58
 #endif
59 59
 
60
+#ifdef USE_SCTP
61
+#define USE_SCTP_STR ", USE_SCTP"
62
+#else
63
+#define USE_SCTP_STR ""
64
+#endif
65
+
60 66
 #ifdef CORE_TLS
61 67
 #define CORE_TLS_STR ", CORE_TLS"
62 68
 #else 
... ...
@@ -334,7 +340,7 @@
334 340
 
335 341
 #define SER_COMPILE_FLAGS \
336 342
 	STATS_STR EXTRA_DEBUG_STR USE_IPV6_STR USE_TCP_STR USE_TLS_STR \
337
-	CORE_TLS_STR TLS_HOOKS_STR \
343
+	USE_SCTP_STR CORE_TLS_STR TLS_HOOKS_STR \
338 344
 	USE_STUN_STR DISABLE_NAGLE_STR USE_MCAST_STR NO_DEBUG_STR NO_LOG_STR \
339 345
 	NO_SIG_DEBUG_STR DNS_IP_HACK_STR  SHM_MEM_STR SHM_MMAP_STR PKG_MALLOC_STR \
340 346
 	VQ_MALLOC_STR F_MALLOC_STR DL_MALLOC_STR SF_MALLOC_STR  LL_MALLOC_STR \
Browse code

- duplicate definition of USE_DST_BLACKLIST is removed - typos in USE_DST_BLACKLIST_STATS are corrected

Miklos Tirpak authored on 31/08/2007 08:12:08
Showing 1 changed files
... ...
@@ -320,12 +320,6 @@
320 320
 #define MYSQL_FAKE_NULL_STR ""
321 321
 #endif
322 322
 
323
-#ifdef USE_DST_BLACKLIST 
324
-#define USE_DST_BLACKLIST_STR ", USE_DST_BLACKLIST"
325
-#else
326
-#define USE_DST_BLACKLIST_STR ""
327
-#endif
328
-
329 323
 #ifdef USE_DNS_CACHE_STATS
330 324
 #define USE_DNS_CACHE_STATS_STR ", USE_DNS_CACHE_STATS"
331 325
 #else
... ...
@@ -333,9 +327,9 @@
333 327
 #endif
334 328
 
335 329
 #ifdef USE_DST_BLACKLIST_STATS
336
-#define DUSE_DST_BLACKLIST_STATS_STR ", DUSE_DST_BLACKLIST_STATS"
330
+#define USE_DST_BLACKLIST_STATS_STR ", USE_DST_BLACKLIST_STATS"
337 331
 #else
338
-#define DUSE_DST_BLACKLIST_STATS_STR ""
332
+#define USE_DST_BLACKLIST_STATS_STR ""
339 333
 #endif
340 334
 
341 335
 #define SER_COMPILE_FLAGS \
... ...
@@ -353,7 +347,7 @@
353 347
 	USE_SYSV_SEM_STR USE_COMP_STR USE_DNS_CACHE_STR USE_DNS_FAILOVER_STR \
354 348
 	DNS_WATCHDOG_SUPPORT_STR USE_NAPTR_STR USE_DST_BLACKLIST_STR \
355 349
 	HAVE_RESOLV_RES_STR HTTP_REPLY_HACK_STR SYSLOG_CALLBACK_SUPPORT_STR \
356
-	MYSQL_FAKE_NULL_STR USE_DST_BLACKLIST_STR USE_DNS_CACHE_STATS_STR
350
+	MYSQL_FAKE_NULL_STR USE_DST_BLACKLIST_STATS_STR USE_DNS_CACHE_STATS_STR
357 351
 
358 352
 
359 353
 #endif
Browse code

put ifdef reports unreported before

Jiri Kuthan authored on 26/08/2007 08:19:54
Showing 1 changed files
... ...
@@ -290,6 +290,54 @@
290 290
 #define USE_STUN_STR ""
291 291
 #endif
292 292
 
293
+#ifdef HAVE_RESOLV_RES 
294
+#define HAVE_RESOLV_RES_STR ", HAVE_RESOLV_RES"
295
+#else
296
+#define HAVE_RESOLV_RES_STR ""
297
+#endif
298
+
299
+#ifdef HTTP_REPLY_HACK 
300
+#define HTTP_REPLY_HACK_STR ", HTTP_REPLY_HACK"
301
+#else
302
+#define HTTP_REPLY_HACK_STR ""
303
+#endif
304
+
305
+#ifdef QM_JOIN_FREE 
306
+#define QM_JOIN_FREE_STR ", QM_JOIN_FREE"
307
+#else
308
+#define QM_JOIN_FREE_STR ""
309
+#endif
310
+
311
+#ifdef SYSLOG_CALLBACK_SUPPORT 
312
+#define SYSLOG_CALLBACK_SUPPORT_STR, ", SYSLOG_CALLBACK_SUPPORT"
313
+#else
314
+#define SYSLOG_CALLBACK_SUPPORT_STR ""
315
+#endif
316
+
317
+#ifdef MYSQL_FAKE_NULL
318
+#define MYSQL_FAKE_NULL_STR, ", MYSQL_FAKE_NULL"
319
+#else
320
+#define MYSQL_FAKE_NULL_STR ""
321
+#endif
322
+
323
+#ifdef USE_DST_BLACKLIST 
324
+#define USE_DST_BLACKLIST_STR ", USE_DST_BLACKLIST"
325
+#else
326
+#define USE_DST_BLACKLIST_STR ""
327
+#endif
328
+
329
+#ifdef USE_DNS_CACHE_STATS
330
+#define USE_DNS_CACHE_STATS_STR ", USE_DNS_CACHE_STATS"
331
+#else
332
+#define USE_DNS_CACHE_STATS_STR ""
333
+#endif
334
+
335
+#ifdef USE_DST_BLACKLIST_STATS
336
+#define DUSE_DST_BLACKLIST_STATS_STR ", DUSE_DST_BLACKLIST_STATS"
337
+#else
338
+#define DUSE_DST_BLACKLIST_STATS_STR ""
339
+#endif
340
+
293 341
 #define SER_COMPILE_FLAGS \
294 342
 	STATS_STR EXTRA_DEBUG_STR USE_IPV6_STR USE_TCP_STR USE_TLS_STR \
295 343
 	CORE_TLS_STR TLS_HOOKS_STR \
... ...
@@ -303,7 +351,9 @@
303 351
 	USE_FUTEX_STR \
304 352
 	FAST_LOCK_STR NOSMP_STR USE_PTHREAD_MUTEX_STR USE_POSIX_SEM_STR \
305 353
 	USE_SYSV_SEM_STR USE_COMP_STR USE_DNS_CACHE_STR USE_DNS_FAILOVER_STR \
306
-	DNS_WATCHDOG_SUPPORT_STR USE_NAPTR_STR USE_DST_BLACKLIST_STR
354
+	DNS_WATCHDOG_SUPPORT_STR USE_NAPTR_STR USE_DST_BLACKLIST_STR \
355
+	HAVE_RESOLV_RES_STR HTTP_REPLY_HACK_STR SYSLOG_CALLBACK_SUPPORT_STR \
356
+	MYSQL_FAKE_NULL_STR USE_DST_BLACKLIST_STR USE_DNS_CACHE_STATS_STR
307 357
 
308 358
 
309 359
 #endif
Browse code

DNS watchdog support implementation: a SER module or an external application can inform the core that the DNS servers are down. No DNS query is performed in this case, and even expired entries are used from the cache. Use dns_set_server_state() function from modules or the dns.set_server_state RPC command to set the sate of the DNS servers.

The feature is desabled by default, enable it with -DDNS_WATCHDOG_SUPPORT (required DNS cache enabled)

Miklos Tirpak authored on 26/07/2007 11:18:34
Showing 1 changed files
... ...
@@ -260,6 +260,12 @@
260 260
 #define USE_DNS_FAILOVER_STR ""
261 261
 #endif
262 262
 
263
+#ifdef DNS_WATCHDOG_SUPPORT
264
+#define DNS_WATCHDOG_SUPPORT_STR ", DNS_WATCHDOG_SUPPORT"
265
+#else
266
+#define DNS_WATCHDOG_SUPPORT_STR ""
267
+#endif
268
+
263 269
 #ifdef USE_NAPTR
264 270
 #define USE_NAPTR_STR ", USE_NAPTR"
265 271
 #else
... ...
@@ -297,7 +303,7 @@
297 303
 	USE_FUTEX_STR \
298 304
 	FAST_LOCK_STR NOSMP_STR USE_PTHREAD_MUTEX_STR USE_POSIX_SEM_STR \
299 305
 	USE_SYSV_SEM_STR USE_COMP_STR USE_DNS_CACHE_STR USE_DNS_FAILOVER_STR \
300
-	USE_NAPTR_STR USE_DST_BLACKLIST_STR
306
+	DNS_WATCHDOG_SUPPORT_STR USE_NAPTR_STR USE_DST_BLACKLIST_STR
301 307
 
302 308
 
303 309
 #endif
Browse code

- dns naptr support (off by default) - dns naptr related config options: dns_try_naptr (off by default), dns_udp_pref, dns_tcp_pref. dns_tls_pref (protocol preferences for naptr record selection) - dns srv load balancing config options: dns_srv_lb (off by default) - dns resolver & cache api change (to support getting the protocol via naptr) - fix: dns iteration through A & AAAA records was not correct

For more info see doc/dns.txt.

Andrei Pelinescu-Onciul authored on 18/06/2007 21:20:58
Showing 1 changed files
... ...
@@ -260,6 +260,12 @@
260 260
 #define USE_DNS_FAILOVER_STR ""
261 261
 #endif
262 262
 
263
+#ifdef USE_NAPTR
264
+#define USE_NAPTR_STR ", USE_NAPTR"
265
+#else
266
+#define USE_NAPTR_STR ""
267
+#endif
268
+
263 269
 #ifdef USE_DST_BLACKLIST
264 270
 #define USE_DST_BLACKLIST_STR ", USE_DST_BLACKLIST"
265 271
 #else
... ...
@@ -291,7 +297,7 @@
291 297
 	USE_FUTEX_STR \
292 298
 	FAST_LOCK_STR NOSMP_STR USE_PTHREAD_MUTEX_STR USE_POSIX_SEM_STR \
293 299
 	USE_SYSV_SEM_STR USE_COMP_STR USE_DNS_CACHE_STR USE_DNS_FAILOVER_STR \
294
-	USE_DST_BLACKLIST_STR
300
+	USE_NAPTR_STR USE_DST_BLACKLIST_STR
295 301
 
296 302
 
297 303
 #endif
Browse code

- added sf_malloc: a multi-process safe (internal locking), multi-pool f_malloc version. Should perform better on lots of CPU once properly tunned (experimental for now) - added ll_malloc: same as above but most operation are lockless (except for "big" fragment handling). For now needs tunning and it still keeps too many debugging statistics. (experimental for now)

Andrei Pelinescu-Onciul authored on 12/06/2007 18:07:12
Showing 1 changed files
... ...
@@ -143,6 +143,18 @@
143 143
 #define DL_MALLOC_STR ""
144 144
 #endif
145 145
 
146
+#ifdef SF_MALLOC
147
+#define SF_MALLOC_STR ", SF_MALLOC"
148
+#else
149
+#define SF_MALLOC_STR ""
150
+#endif
151
+
152
+#ifdef LL_MALLOC
153
+#define LL_MALLOC_STR ", LL_MALLOC"
154
+#else
155
+#define LL_MALLOC_STR ""
156
+#endif
157
+
146 158
 #ifdef USE_SHM_MEM
147 159
 #define USE_SHM_MEM_STR ", USE_SHM_MEM"
148 160
 #else
... ...
@@ -167,6 +179,18 @@
167 179
 #define DEBUG_DMALLOC_STR ""
168 180
 #endif
169 181
 
182
+#ifdef DBG_SF_MALLOC
183
+#define DBG_SF_MALLOC_STR ", DBG_SF_MALLOC"
184
+#else
185
+#define DBG_SF_MALLOC_STR ""
186
+#endif
187
+
188
+#ifdef DBG_LL_MALLOC
189
+#define DBG_LL_MALLOC_STR ", DBG_SF_MALLOC"
190
+#else
191
+#define DBG_LL_MALLOC_STR ""
192
+#endif
193
+
170 194
 #ifdef TIMER_DEBUG
171 195
 #define TIMER_DEBUG_STR ", TIMER_DEBUG"
172 196
 #else
... ...
@@ -259,8 +283,12 @@
259 283
 	CORE_TLS_STR TLS_HOOKS_STR \
260 284
 	USE_STUN_STR DISABLE_NAGLE_STR USE_MCAST_STR NO_DEBUG_STR NO_LOG_STR \
261 285
 	NO_SIG_DEBUG_STR DNS_IP_HACK_STR  SHM_MEM_STR SHM_MMAP_STR PKG_MALLOC_STR \
262
-	VQ_MALLOC_STR F_MALLOC_STR DL_MALLOC_STR USE_SHM_MEM_STR DBG_QM_MALLOC_STR \
263
-	DBG_F_MALLOC_STR DEBUG_DMALLOC_STR TIMER_DEBUG_STR USE_FUTEX_STR \
286
+	VQ_MALLOC_STR F_MALLOC_STR DL_MALLOC_STR SF_MALLOC_STR  LL_MALLOC_STR \
287
+	USE_SHM_MEM_STR \
288
+	DBG_QM_MALLOC_STR \
289
+	DBG_F_MALLOC_STR DEBUG_DMALLOC_STR DBG_SF_MALLOC_STR DBG_LL_MALLOC_STR \
290
+	TIMER_DEBUG_STR \
291
+	USE_FUTEX_STR \
264 292
 	FAST_LOCK_STR NOSMP_STR USE_PTHREAD_MUTEX_STR USE_POSIX_SEM_STR \
265 293
 	USE_SYSV_SEM_STR USE_COMP_STR USE_DNS_CACHE_STR USE_DNS_FAILOVER_STR \
266 294
 	USE_DST_BLACKLIST_STR
Browse code

Add a new memory allocator (-DDL_MALLOC) which is based on Doug Lea's dl_malloc implementation (http://g.oswego.edu/dl/html/malloc.html). Patch has been provided by Jan Andres <jan.andres@freenet-ag.de>

Notes:
- very fast, esp. on shm_malloc() in comparison to other algorithms
- has been in production use at freenet(.de) for 6+ months
- is picky about buffer overruns (aka detects and crashes on them)
- disabled by default (set -DDL_MALLOC in Makefile.defs)
- closes SER-278

Hendrik Scholz authored on 01/06/2007 09:20:34
Showing 1 changed files
... ...
@@ -137,6 +137,12 @@
137 137
 #define F_MALLOC_STR ""
138 138
 #endif
139 139
 
140
+#ifdef DL_MALLOC
141
+#define DL_MALLOC_STR ", DL_MALLOC"
142
+#else
143
+#define DL_MALLOC_STR ""
144
+#endif
145
+
140 146
 #ifdef USE_SHM_MEM
141 147
 #define USE_SHM_MEM_STR ", USE_SHM_MEM"
142 148
 #else
... ...
@@ -253,7 +259,7 @@
253 259
 	CORE_TLS_STR TLS_HOOKS_STR \
254 260
 	USE_STUN_STR DISABLE_NAGLE_STR USE_MCAST_STR NO_DEBUG_STR NO_LOG_STR \
255 261
 	NO_SIG_DEBUG_STR DNS_IP_HACK_STR  SHM_MEM_STR SHM_MMAP_STR PKG_MALLOC_STR \
256
-	VQ_MALLOC_STR F_MALLOC_STR USE_SHM_MEM_STR DBG_QM_MALLOC_STR \
262
+	VQ_MALLOC_STR F_MALLOC_STR DL_MALLOC_STR USE_SHM_MEM_STR DBG_QM_MALLOC_STR \
257 263
 	DBG_F_MALLOC_STR DEBUG_DMALLOC_STR TIMER_DEBUG_STR USE_FUTEX_STR \
258 264
 	FAST_LOCK_STR NOSMP_STR USE_PTHREAD_MUTEX_STR USE_POSIX_SEM_STR \
259 265
 	USE_SYSV_SEM_STR USE_COMP_STR USE_DNS_CACHE_STR USE_DNS_FAILOVER_STR \
Browse code

- added futex based locking, used by default on linux 2.5.70+ (to turn it off compile with make use_futex=no) - moved get_sys_ver from io_wait.c into ut.c

Andrei Pelinescu-Onciul authored on 14/05/2007 21:29:46
Showing 1 changed files
... ...
@@ -167,6 +167,13 @@
167 167
 #define TIMER_DEBUG_STR ""
168 168
 #endif
169 169
 
170
+#ifdef USE_FUTEX
171
+#define USE_FUTEX_STR ", USE_FUTEX"
172
+#else
173
+#define USE_FUTEX_STR ""
174
+#endif
175
+
176
+
170 177
 #ifdef FAST_LOCK
171 178
 #ifdef BUSY_WAIT
172 179
 #define FAST_LOCK_STR ", FAST_LOCK-BUSY_WAIT"
... ...
@@ -247,7 +254,7 @@
247 254
 	USE_STUN_STR DISABLE_NAGLE_STR USE_MCAST_STR NO_DEBUG_STR NO_LOG_STR \
248 255
 	NO_SIG_DEBUG_STR DNS_IP_HACK_STR  SHM_MEM_STR SHM_MMAP_STR PKG_MALLOC_STR \
249 256
 	VQ_MALLOC_STR F_MALLOC_STR USE_SHM_MEM_STR DBG_QM_MALLOC_STR \
250
-	DBG_F_MALLOC_STR DEBUG_DMALLOC_STR TIMER_DEBUG_STR \
257
+	DBG_F_MALLOC_STR DEBUG_DMALLOC_STR TIMER_DEBUG_STR USE_FUTEX_STR \
251 258
 	FAST_LOCK_STR NOSMP_STR USE_PTHREAD_MUTEX_STR USE_POSIX_SEM_STR \
252 259
 	USE_SYSV_SEM_STR USE_COMP_STR USE_DNS_CACHE_STR USE_DNS_FAILOVER_STR \
253 260
 	USE_DST_BLACKLIST_STR
Browse code

- tls hooks support: special tls hooks added in core that allow a module or core part to provide a tls implementation. Support for the old in-core tls compile options is preserved (but one can compile with either tls hooks support or tls-in-core support, not with both in the same time). Changes were kept to a minimum. - Makefiles: make TLS=1 deprecated, use instead make TLS_HOOKS=1 or make CORE_TLS=1 (if in-core tls support is needed). Added TLS_EXTRA_LIBS (e.g. make CORE_TLS=1 TLS_EXTRA_LIBS="-lz -lkrb5").

Andrei Pelinescu-Onciul authored on 10/02/2007 18:52:48
Showing 1 changed files
... ...
@@ -57,6 +57,18 @@
57 57
 #define USE_TLS_STR ""
58 58
 #endif
59 59
 
60
+#ifdef CORE_TLS
61
+#define CORE_TLS_STR ", CORE_TLS"
62
+#else 
63
+#define CORE_TLS_STR ""
64
+#endif
65
+
66
+#ifdef TLS_HOOKS
67
+#define TLS_HOOKS_STR ", TLS_HOOKS"
68
+#else 
69
+#define TLS_HOOKS_STR ""
70
+#endif
71
+
60 72
 
61 73
 #ifdef DISABLE_NAGLE
62 74
 #define DISABLE_NAGLE_STR ", DISABLE_NAGLE"
... ...
@@ -231,6 +243,7 @@
231 243
 
232 244
 #define SER_COMPILE_FLAGS \
233 245
 	STATS_STR EXTRA_DEBUG_STR USE_IPV6_STR USE_TCP_STR USE_TLS_STR \
246
+	CORE_TLS_STR TLS_HOOKS_STR \
234 247
 	USE_STUN_STR DISABLE_NAGLE_STR USE_MCAST_STR NO_DEBUG_STR NO_LOG_STR \
235 248
 	NO_SIG_DEBUG_STR DNS_IP_HACK_STR  SHM_MEM_STR SHM_MMAP_STR PKG_MALLOC_STR \
236 249
 	VQ_MALLOC_STR F_MALLOC_STR USE_SHM_MEM_STR DBG_QM_MALLOC_STR \
Browse code

- compile flags names added for USE_STUN & NO_SIG_DEBUG

Andrei Pelinescu-Onciul authored on 25/10/2006 18:50:59
Showing 1 changed files
... ...
@@ -217,12 +217,24 @@
217 217
 #define USE_DST_BLACKLIST_STR ""
218 218
 #endif
219 219
 
220
+#ifdef NO_SIG_DEBUG
221
+#define NO_SIG_DEBUG_STR ", NO_SIG_DEBUG"
222
+#else
223
+#define NO_SIG_DEBUG_STR ""
224
+#endif
225
+
226
+#ifdef USE_STUN
227
+#define USE_STUN_STR ", USE_STUN"
228
+#else
229
+#define USE_STUN_STR ""
230
+#endif
231
+
220 232
 #define SER_COMPILE_FLAGS \
221 233
 	STATS_STR EXTRA_DEBUG_STR USE_IPV6_STR USE_TCP_STR USE_TLS_STR \
222
-	DISABLE_NAGLE_STR USE_MCAST_STR NO_DEBUG_STR NO_LOG_STR DNS_IP_HACK_STR \
223
-	SHM_MEM_STR SHM_MMAP_STR PKG_MALLOC_STR VQ_MALLOC_STR F_MALLOC_STR \
224
-	USE_SHM_MEM_STR DBG_QM_MALLOC_STR DBG_F_MALLOC_STR DEBUG_DMALLOC_STR \
225
-	TIMER_DEBUG_STR \
234
+	USE_STUN_STR DISABLE_NAGLE_STR USE_MCAST_STR NO_DEBUG_STR NO_LOG_STR \
235
+	NO_SIG_DEBUG_STR DNS_IP_HACK_STR  SHM_MEM_STR SHM_MMAP_STR PKG_MALLOC_STR \
236
+	VQ_MALLOC_STR F_MALLOC_STR USE_SHM_MEM_STR DBG_QM_MALLOC_STR \
237
+	DBG_F_MALLOC_STR DEBUG_DMALLOC_STR TIMER_DEBUG_STR \
226 238
 	FAST_LOCK_STR NOSMP_STR USE_PTHREAD_MUTEX_STR USE_POSIX_SEM_STR \
227 239
 	USE_SYSV_SEM_STR USE_COMP_STR USE_DNS_CACHE_STR USE_DNS_FAILOVER_STR \
228 240
 	USE_DST_BLACKLIST_STR
Browse code

- dns cache support (ser will cache both positive and negative responses if turned on, see doc/dns.txt for more details & config options) - dns failover support: when a name resolves to more then 1 ip (either multiple A or AAAA records or multiple SRVs) and sending to the first ip fails, ser will retry with the others. By default is off. See doc/dns.txt for more details/config options a.s.o. - destination blacklist: when sending to some destination (defined by ip:port and protocol) fails, ser will temporarily add this destination in a blacklist giving future sends the opportunity of immediately failing. Destination are also added to the blacklist on tm invite timeouts (when no response is received in the fr_timer interval). By default is off, see doc/dst_blacklist.txt form more details/config options. - small makefile fixes (in mode=debug) - resolver get_record api changes (updated enum)

WARNING: there are a lot of changes in tm

Andrei Pelinescu-Onciul authored on 15/09/2006 10:37:44
Showing 1 changed files
... ...
@@ -199,6 +199,24 @@
199 199
 #endif
200 200
 
201 201
 
202
+#ifdef USE_DNS_CACHE
203
+#define USE_DNS_CACHE_STR ", USE_DNS_CACHE"
204
+#else
205
+#define USE_DNS_CACHE_STR ""
206
+#endif
207
+
208
+#ifdef USE_DNS_FAILOVER
209
+#define USE_DNS_FAILOVER_STR ", USE_DNS_FAILOVER"
210
+#else
211
+#define USE_DNS_FAILOVER_STR ""
212
+#endif
213
+
214
+#ifdef USE_DST_BLACKLIST
215
+#define USE_DST_BLACKLIST_STR ", USE_DST_BLACKLIST"
216
+#else
217
+#define USE_DST_BLACKLIST_STR ""
218
+#endif
219
+
202 220
 #define SER_COMPILE_FLAGS \
203 221
 	STATS_STR EXTRA_DEBUG_STR USE_IPV6_STR USE_TCP_STR USE_TLS_STR \
204 222
 	DISABLE_NAGLE_STR USE_MCAST_STR NO_DEBUG_STR NO_LOG_STR DNS_IP_HACK_STR \
... ...
@@ -206,7 +224,8 @@
206 224
 	USE_SHM_MEM_STR DBG_QM_MALLOC_STR DBG_F_MALLOC_STR DEBUG_DMALLOC_STR \
207 225
 	TIMER_DEBUG_STR \
208 226
 	FAST_LOCK_STR NOSMP_STR USE_PTHREAD_MUTEX_STR USE_POSIX_SEM_STR \
209
-	USE_SYSV_SEM_STR USE_COMP_STR
227
+	USE_SYSV_SEM_STR USE_COMP_STR USE_DNS_CACHE_STR USE_DNS_FAILOVER_STR \
228
+	USE_DST_BLACKLIST_STR
210 229
 
211 230
 
212 231
 #endif
Browse code

- OS macro defined in Makefile.defs left unquoted and added OS_QUOTED. OS macro maybe used by 3rd party header in regular way, w/o quotes

- added dont_daemonize feature. When a process manager is responsible for running processes then is not happy when spawned process is terminated almost immediately. Manager will try restart ser in infinite loop.
Cmd line params (ser.cfg) (backward compatible):
-D ... don't fork (dont_fork=1)
-DD ... don't daemonize creator process (dont_fork=2)
-DDD | or no -D param ... normal daemonizetion (dont_fork>2 or 0)

Note there is problem when Ctrl-C in dont_daemonize mode, not all processes are terminated

Creator_pid variable..pid of creator process, may be terminated

Tomas Mandys authored on 15/05/2006 09:56:40
Showing 1 changed files
... ...
@@ -31,8 +31,7 @@
31 31
 #ifndef version_h
32 32
 #define version_h
33 33
 
34
-#define SER_FULL_VERSION  NAME " " VERSION " (" ARCH "/" OS ")" 
35
-
34
+#define SER_FULL_VERSION  NAME " " VERSION " (" ARCH "/" OS_QUOTED ")" 
36 35
 
37 36
 #ifdef STATS
38 37
 #define STATS_STR  "STATS: On"
... ...
@@ -186,7 +185,6 @@
186 185
 #define USE_SYSV_SEM_STR ""
187 186
 #endif
188 187
 
189
-
190 188
 #ifdef NOSMP
191 189
 #define NOSMP_STR "-NOSMP"
192 190
 #else
Browse code

- more struct dest_info conversions (via_builder, tm: build_uac_req, assemble_via a.s.o) - basic support for comp=method (where mehtod=sigcomp|sergz) parsing (via, various uris) and adding (via, rr lumps). The code is compiled only if USE_COMP is defined. NOTE: for now the code is useless (no compression code yet and no compression hooks), so by default it's not compiled.

WARNING: lots of changes and very lightly tested

Andrei Pelinescu-Onciul authored on 21/04/2006 14:28:36
Showing 1 changed files
... ...
@@ -194,6 +194,13 @@
194 194
 #endif
195 195
 
196 196
 
197
+#ifdef USE_COMP
198
+#define USE_COMP_STR ", USE_COMP"
199
+#else
200
+#define USE_COMP_STR ""
201
+#endif
202
+
203
+
197 204
 #define SER_COMPILE_FLAGS \
198 205
 	STATS_STR EXTRA_DEBUG_STR USE_IPV6_STR USE_TCP_STR USE_TLS_STR \
199 206
 	DISABLE_NAGLE_STR USE_MCAST_STR NO_DEBUG_STR NO_LOG_STR DNS_IP_HACK_STR \
... ...
@@ -201,7 +208,7 @@
201 208
 	USE_SHM_MEM_STR DBG_QM_MALLOC_STR DBG_F_MALLOC_STR DEBUG_DMALLOC_STR \
202 209
 	TIMER_DEBUG_STR \
203 210
 	FAST_LOCK_STR NOSMP_STR USE_PTHREAD_MUTEX_STR USE_POSIX_SEM_STR \
204
-	USE_SYSV_SEM_STR
211
+	USE_SYSV_SEM_STR USE_COMP_STR
205 212
 
206 213
 
207 214
 #endif
Browse code

New timer interface: - allows adding timers dynamically - supports one shot and periodic timers - precise - allows timeouts < 0.5 s (depends on the config., by default min. timeout = 62.5 ms) - based on a 3 level hierarchical timing wheel - very fast - low overhead for timer functions (most of the time, the excetion is timer_del which take can take quite a long time in special situations) - supports "slow" timers (compile option, by default on), "slow" timer = a timer handler which is declared as possible taking a long timer to execute. - backward compatible: old timer functions are preserverd => no changes needed for the existing code (although migration to the new interface is recommended) For more information read doc/timers.txt. tm timer update will follow shortly (this week).

Andrei Pelinescu-Onciul authored on 05/12/2005 18:29:30
Showing 1 changed files
... ...
@@ -150,6 +150,12 @@
150 150
 #define DEBUG_DMALLOC_STR ""
151 151
 #endif
152 152
 
153
+#ifdef TIMER_DEBUG
154
+#define TIMER_DEBUG_STR ", TIMER_DEBUG"
155
+#else
156
+#define TIMER_DEBUG_STR ""
157
+#endif
158
+
153 159
 #ifdef FAST_LOCK
154 160
 #ifdef BUSY_WAIT
155 161
 #define FAST_LOCK_STR ", FAST_LOCK-BUSY_WAIT"
... ...
@@ -193,6 +199,7 @@
193 199
 	DISABLE_NAGLE_STR USE_MCAST_STR NO_DEBUG_STR NO_LOG_STR DNS_IP_HACK_STR \
194 200
 	SHM_MEM_STR SHM_MMAP_STR PKG_MALLOC_STR VQ_MALLOC_STR F_MALLOC_STR \
195 201
 	USE_SHM_MEM_STR DBG_QM_MALLOC_STR DBG_F_MALLOC_STR DEBUG_DMALLOC_STR \
202
+	TIMER_DEBUG_STR \
196 203
 	FAST_LOCK_STR NOSMP_STR USE_PTHREAD_MUTEX_STR USE_POSIX_SEM_STR \
197 204
 	USE_SYSV_SEM_STR
198 205
 
Browse code

-x86_64 experimental support -various 64 bit warning fixes

Andrei Pelinescu-Onciul authored on 28/09/2004 18:10:08
Showing 1 changed files
... ...
@@ -189,7 +189,7 @@
189 189
 
190 190
 
191 191
 #define SER_COMPILE_FLAGS \
192
-	EXTRA_DEBUG_STR STATS_STR USE_IPV6_STR USE_TCP_STR USE_TLS_STR \
192
+	STATS_STR EXTRA_DEBUG_STR USE_IPV6_STR USE_TCP_STR USE_TLS_STR \
193 193
 	DISABLE_NAGLE_STR USE_MCAST_STR NO_DEBUG_STR NO_LOG_STR DNS_IP_HACK_STR \
194 194
 	SHM_MEM_STR SHM_MMAP_STR PKG_MALLOC_STR VQ_MALLOC_STR F_MALLOC_STR \
195 195
 	USE_SHM_MEM_STR DBG_QM_MALLOC_STR DBG_F_MALLOC_STR DEBUG_DMALLOC_STR \
Browse code

- SYSV lock fixes: fixed includes, added seteuid before lock init and restore it afterwards (so that SYSV sems get created with the proper uid in case -u uid is used) - moved shm_mem initialization after the config is parsed (so that ser will know if it's supposed to suid and use the seteuid hack above in the SYSV locks case) - fixed ser shutdown procedure on main_loop error (proper cleanup) - the fifo file is now deleted on exit - added version.h and changed module version control to check also the compile flags - usrloc: fixed missing lock_destroy - usrloc: fixed DB capability check even if no db mode

Andrei Pelinescu-Onciul authored on 19/09/2004 20:22:51
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,200 @@
1
+/*
2
+ * $Id$
3
+ *
4
+ * version and compile flags macros 
5
+ *
6
+ *
7
+ * Copyright (C) 2004 FhG Fokus
8
+ *
9
+ * This file is part of ser, a free SIP server.
10
+ *
11
+ * ser is free software; you can redistribute it and/or modify
12
+ * it under the terms of the GNU General Public License as published by
13
+ * the Free Software Foundation; either version 2 of the License, or
14
+ * (at your option) any later version
15
+ *
16
+ * For a license to use the ser software under conditions
17
+ * other than those described here, or to purchase support for this
18
+ * software, please contact iptel.org by e-mail at the following addresses:
19
+ *    info@iptel.org
20
+ *
21
+ * ser is distributed in the hope that it will be useful,
22
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
23
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
24
+ * GNU General Public License for more details.
25
+ *
26
+ * You should have received a copy of the GNU General Public License 
27
+ * along with this program; if not, write to the Free Software 
28
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
29
+ */
30
+
31
+#ifndef version_h
32
+#define version_h
33
+
34
+#define SER_FULL_VERSION  NAME " " VERSION " (" ARCH "/" OS ")" 
35
+
36
+
37
+#ifdef STATS
38
+#define STATS_STR  "STATS: On"
39
+#else
40
+#define STATS_STR  "STATS: Off"
41
+#endif
42
+
43
+#ifdef USE_IPV6
44
+#define USE_IPV6_STR ", USE_IPV6"
45
+#else