Changeset 1062:56bf0377e2ff in freeDiameter for libfdproto
- Timestamp:
- Apr 29, 2013, 7:43:52 PM (11 years ago)
- Branch:
- default
- Children:
- 1064:4e6c7710f4d5, 1065:c4e4e07f1336
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libfdproto/messages.c
r1036 r1062 2352 2352 } 2353 2353 if (count < min) { 2354 TRACE_DEBUG(INFO,"Conflicting rule: the number of occurences (%d) is < the rule min (%d) for '%s'.", count, min, avp_name);2354 fd_log_error("Conflicting rule: the number of occurences (%d) is < the rule min (%d) for '%s'.", count, min, avp_name); 2355 2355 if (pr_data->pei) { 2356 2356 pr_data->pei->pei_errcode = "DIAMETER_MISSING_AVP"; … … 2362 2362 /* Check the "max" value */ 2363 2363 if ((rule->rule_max != -1) && (count > rule->rule_max)) { 2364 TRACE_DEBUG(INFO,"Conflicting rule: the number of occurences (%d) is > the rule max (%d) for '%s'.", count, rule->rule_max, avp_name);2364 fd_log_error("Conflicting rule: the number of occurences (%d) is > the rule max (%d) for '%s'.", count, rule->rule_max, avp_name); 2365 2365 if (pr_data->pei) { 2366 2366 if (rule->rule_max == 0) … … 2383 2383 /* Since "0*1<fixed>" is a valid rule specifier, we only reject cases where the AVP appears *after* its fixed position */ 2384 2384 if (first > rule->rule_order) { 2385 TRACE_DEBUG(INFO,"Conflicting rule: the FIXED_HEAD AVP appears first in (%d) position, the rule requires (%d) for '%s'.", first, rule->rule_order, avp_name);2385 fd_log_error("Conflicting rule: the FIXED_HEAD AVP appears first in (%d) position, the rule requires (%d) for '%s'.", first, rule->rule_order, avp_name); 2386 2386 if (pr_data->pei) { 2387 2387 pr_data->pei->pei_errcode = "DIAMETER_MISSING_AVP"; … … 2396 2396 /* Since "0*1<fixed>" is a valid rule specifier, we only reject cases where the AVP appears *before* its fixed position */ 2397 2397 if (last > rule->rule_order) { /* We have a ">" here because we count in reverse order (i.e. from the end) */ 2398 TRACE_DEBUG(INFO,"Conflicting rule: the FIXED_TAIL AVP appears last in (%d) position, the rule requires (%d) for '%s'.", last, rule->rule_order, avp_name);2398 fd_log_error("Conflicting rule: the FIXED_TAIL AVP appears last in (%d) position, the rule requires (%d) for '%s'.", last, rule->rule_order, avp_name); 2399 2399 if (pr_data->pei) { 2400 2400 pr_data->pei->pei_errcode = "DIAMETER_MISSING_AVP";
Note: See TracChangeset
for help on using the changeset viewer.