Changeset 1119:79dd22145f52 in freeDiameter for libfdcore/p_ce.c
- Timestamp:
- May 14, 2013, 12:04:20 PM (11 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libfdcore/p_ce.c
r1113 r1119 275 275 if (hdr->avp_flags & AVP_FLAG_VENDOR) { 276 276 /* Ignore all vendor-specific AVPs in CER/CEA because we don't support any currently */ 277 TRACE_DEBUG(FULL, "Ignored a vendor AVP in CER / CEA"); 278 fd_msg_dump_one(FULL, avp); 277 LOG_A("Ignored a vendor-specific AVP in CER / CEA"); 279 278 goto next; 280 279 } … … 284 283 if (hdr->avp_value == NULL) { 285 284 /* This is a sanity check */ 286 TRACE_DEBUG(NONE, "Ignored an AVP with unset value in CER/CEA"); 287 fd_msg_dump_one(NONE, avp); 285 LOG_F("Ignored an AVP (code %x) with unset value in CER/CEA", hdr->avp_code); 288 286 ASSERT(0); /* To check if this really happens, and understand why... */ 289 287 goto next; … … 297 295 if (hdr->avp_value == NULL) { 298 296 /* This is a sanity check */ 299 TRACE_DEBUG(NONE, "Ignored an AVP with unset value in CER/CEA"); 300 fd_msg_dump_one(NONE, avp); 297 LOG_F("Ignored an AVP (code %x) with unset value in CER/CEA", hdr->avp_code); 301 298 ASSERT(0); /* To check if this really happens, and understand why... */ 302 299 goto next; … … 319 316 if (hdr->avp_value == NULL) { 320 317 /* This is a sanity check */ 321 TRACE_DEBUG(NONE, "Ignored an AVP with unset value in CER/CEA"); 322 fd_msg_dump_one(NONE, avp); 318 LOG_F("Ignored an AVP (code %x) with unset value in CER/CEA", hdr->avp_code); 323 319 ASSERT(0); /* To check if this really happens, and understand why... */ 324 320 goto next; … … 350 346 if (hdr->avp_value == NULL) { 351 347 /* This is a sanity check */ 352 TRACE_DEBUG(NONE, "Ignored an AVP with unset value in CER/CEA"); 353 fd_msg_dump_one(NONE, avp); 348 LOG_F("Ignored an AVP (code %x) with unset value in CER/CEA", hdr->avp_code); 354 349 ASSERT(0); /* To check if this really happens, and understand why... */ 355 350 goto next; … … 376 371 if (hdr->avp_value == NULL) { 377 372 /* This is a sanity check */ 378 TRACE_DEBUG(NONE, "Ignored an AVP with unset value in CER/CEA"); 379 fd_msg_dump_one(NONE, avp); 373 LOG_F("Ignored an AVP (code %x) with unset value in CER/CEA", hdr->avp_code); 380 374 ASSERT(0); /* To check if this really happens, and understand why... */ 381 375 goto next; … … 397 391 if (hdr->avp_value == NULL) { 398 392 /* This is a sanity check */ 399 TRACE_DEBUG(NONE, "Ignored an AVP with unset value in CER/CEA"); 400 fd_msg_dump_one(NONE, avp); 393 LOG_F("Ignored an AVP (code %x) with unset value in CER/CEA", hdr->avp_code); 401 394 ASSERT(0); /* To check if this really happens, and understand why... */ 402 395 goto next; … … 419 412 if (hdr->avp_value == NULL) { 420 413 /* This is a sanity check */ 421 TRACE_DEBUG(NONE, "Ignored an AVP with unset value in CER/CEA"); 422 fd_msg_dump_one(NONE, avp); 414 LOG_F("Ignored an AVP (code %x) with unset value in CER/CEA", hdr->avp_code); 423 415 ASSERT(0); /* To check if this really happens, and understand why... */ 424 416 goto next; … … 440 432 if (hdr->avp_value == NULL) { 441 433 /* This is a sanity check */ 442 TRACE_DEBUG(NONE, "Ignored an AVP with unset value in CER/CEA"); 443 fd_msg_dump_one(NONE, avp); 434 LOG_F("Ignored an AVP (code %x) with unset value in CER/CEA", hdr->avp_code); 444 435 ASSERT(0); /* To check if this really happens, and understand why... */ 445 436 goto next; … … 468 459 469 460 if (inhdr->avp_flags & AVP_FLAG_VENDOR) { 470 TRACE_DEBUG(FULL, "Ignored a vendor AVP inside Vendor-Specific-Application-Id AVP"); 471 fd_msg_dump_one(FULL, avp); 461 LOG_A("Ignored a vendor AVP inside Vendor-Specific-Application-Id AVP"); 472 462 goto innext; 473 463 } … … 475 465 if (inhdr->avp_value == NULL) { 476 466 /* This is a sanity check */ 477 TRACE_DEBUG(NONE, "Ignored an AVP with unset value in CER/CEA"); 478 fd_msg_dump_one(NONE, avp); 467 LOG_F("Ignored an AVP (code %x) with unset value in CER/CEA", hdr->avp_code); 479 468 ASSERT(0); /* To check if this really happens, and understand why... */ 480 469 goto innext; … … 508 497 509 498 if (invalid) { 510 TRACE_DEBUG(FULL, "Invalid Vendor-Specific-Application-Id AVP received, ignored"); 511 fd_msg_dump_one(FULL, avp); 499 TRACE_DEBUG(FULL, "Invalid Vendor-Specific-Application-Id AVP received"); 512 500 error->pei_errcode = "DIAMETER_INVALID_AVP_VALUE"; 513 501 error->pei_avp = avp; … … 533 521 if (hdr->avp_value == NULL) { 534 522 /* This is a sanity check */ 535 TRACE_DEBUG(NONE, "Ignored an AVP with unset value in CER/CEA"); 536 fd_msg_dump_one(NONE, avp); 523 LOG_F("Ignored an AVP (code %x) with unset value in CER/CEA", hdr->avp_code); 537 524 ASSERT(0); /* To check if this really happens, and understand why... */ 538 525 goto next; … … 549 536 if (hdr->avp_value == NULL) { 550 537 /* This is a sanity check */ 551 TRACE_DEBUG(NONE, "Ignored an AVP with unset value in CER/CEA"); 552 fd_msg_dump_one(NONE, avp); 538 LOG_F("Ignored an AVP (code %x) with unset value in CER/CEA", hdr->avp_code); 553 539 ASSERT(0); /* To check if this really happens, and understand why... */ 554 540 goto next; … … 566 552 if (hdr->avp_value == NULL) { 567 553 /* This is a sanity check */ 568 TRACE_DEBUG(NONE, "Ignored an AVP with unset value in CER/CEA"); 569 fd_msg_dump_one(NONE, avp); 554 LOG_F("Ignored an AVP (code %x) with unset value in CER/CEA", hdr->avp_code); 570 555 ASSERT(0); /* To check if this really happens, and understand why... */ 571 556 goto next; … … 578 563 if (hdr->avp_value == NULL) { 579 564 /* This is a sanity check */ 580 TRACE_DEBUG(NONE, "Ignored an AVP with unset value in CER/CEA"); 581 fd_msg_dump_one(NONE, avp); 565 LOG_F("Ignored an AVP (code %x) with unset value in CER/CEA", hdr->avp_code); 582 566 ASSERT(0); /* To check if this really happens, and understand why... */ 583 567 goto next;
Note: See TracChangeset
for help on using the changeset viewer.