Browse code

max forward

Bogdan-Andrei Iancu authored on 29/01/2002 17:28:40
Showing 5 changed files
... ...
@@ -53,7 +53,7 @@ ARCH = $(shell uname -s)
53 53
 
54 54
 DEFS+= -DNAME='"$(NAME)"' -DVERSION='"$(RELEASE)"' -DARCH='"$(ARCH)"' \
55 55
 	 -DDNS_IP_HACK  -DPKG_MALLOC -DSHM_MEM  -DSHM_MMAP \
56
-	-DVQ_MALLOC -DBRUT_HACK #-DEXTRA_DEBUG #-DSTATIC_TM #-DEXTRA_DEBUG
56
+	-DVQ_MALLOC #-DBRUT_HACK #-DEXTRA_DEBUG #-DSTATIC_TM #-DEXTRA_DEBUG
57 57
 	#-DEXTRA_DEBUG -DBRUT_HACK \
58 58
 	#-DVQ_MALLOC  -DDBG_LOCK  #-DSTATS
59 59
 	  #-DDBG_QM_MALLOC #-DVQ_MALLOC #-DNO_DEBUG
... ...
@@ -7,6 +7,7 @@
7 7
 #include "../../dprint.h"
8 8
 #include "../../mem/mem.h"
9 9
 #include "../../data_lump.h"
10
+#include "../../ut.h"
10 11
 
11 12
 
12 13
 #define ROUND4(s) ((s)%4)?((s)+4)/4*4:(s)
... ...
@@ -16,9 +16,6 @@
16 16
 #define  sip_msg_free(_p_msg) shm_free( (_p_msg ))
17 17
 #define  sip_msg_free_unsafe(_p_msg) shm_free_unsafe( (_p_msg) )
18 18
 
19
-#define  translate_pointer( _new_buf , _org_buf , _p) \
20
-              ( (_p)?(_new_buf + (_p-_org_buf)):(0) )
21
-
22 19
 
23 20
 struct sip_msg*  sip_msg_cloner_1( struct sip_msg *org_msg );
24 21
 struct sip_msg*  sip_msg_cloner_2( struct sip_msg *org_msg );
... ...
@@ -626,10 +626,8 @@ int t_retransmit_reply( struct sip_msg* p_msg   )
626 626
 
627 627
 int t_unref( /* struct sip_msg* p_msg */ )
628 628
 {
629
-/*
630 629
 	if (T==T_UNDEFINED || T==T_NULL)
631 630
 		return -1;
632
-*/
633 631
 	T_UNREF( T );
634 632
 	T=T_UNDEFINED;
635 633
 	return 1;
... ...
@@ -28,6 +28,12 @@
28 28
 			(_mystr).len--; \
29 29
 	})
30 30
 
31
+
32
+#define  translate_pointer( _new_buf , _org_buf , _p) \
33
+	( (_p)?(_new_buf + (_p-_org_buf)):(0) )
34
+
35
+
36
+
31 37
 /* converts a str to an u. short, returns the u. short and sets *err on
32 38
  * error and if err!=null
33 39
  * */