Browse code

core & avpops: fix overlapping avp flag

- k avpops uses a flag to mark whether a loaded avp from db has changed,
in order to decide if worth to update db
- the value was overlapping with flags defined in sr core
- reported by Juha Heinanen

Daniel-Constantin Mierla authored on 31/08/2009 10:01:46
Showing 2 changed files
... ...
@@ -41,7 +41,7 @@
41 41
 
42 42
 /* flags used inside avps */
43 43
 /* IMPORTANT: flagss 0-4 are reserved by core; 8-15 by script */
44
-#define AVP_IS_IN_DB    (1<<7)
44
+#define AVP_IS_IN_DB    (1<<12)
45 45
 
46 46
 /* DB flags */
47 47
 #define AVPOPS_DB_NAME_INT   (1<<1)
... ...
@@ -153,7 +153,11 @@ typedef struct avp_spec {
153 153
 #define AVP_INDEX_BACKWARD	(1<<11)
154 154
 #define AVP_INDEX_ALL		(AVP_INDEX_FORWARD | AVP_INDEX_BACKWARD)
155 155
 
156
-#define AVP_CUSTOM_FLAGS	12
156
+/* AVP DB flag used by avpops module - defined in avpops
157
+ * - kept here for reference */
158
+// #define AVP_IS_IN_DB    (1<<12)
159
+
160
+#define AVP_CUSTOM_FLAGS	13
157 161
 
158 162
 #define GALIAS_CHAR_MARKER  '$'
159 163