Navigation


Changeset 1426:f260953c2c6c in freeDiameter for extensions


Ignore:
Timestamp:
Feb 19, 2020, 9:13:42 AM (4 years ago)
Author:
Luke Mewburn <luke@mewburn.net>
Branch:
default
Phase:
public
Message:

dict_dcca_3gpp: dump dict if conf if "dumpdict"

Add debug code to log the vendor dictionary if
the config file is the word "dumpdict".

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/dict_dcca_3gpp/dict_dcca_3gpp.c

    r1337 r1426  
    145145static int dict_dcca_3gpp_entry(char * conffile)
    146146{
     147        struct dict_object * vendor = NULL;
     148
    147149        /* Applications section */
    148150        {               
     
    150152                {
    151153                        struct dict_vendor_data vendor_data = { 10415, "3GPP" };
    152                         CHECK_FCT(fd_dict_new(fd_g_config->cnf_dict, DICT_VENDOR, &vendor_data, NULL, NULL));
     154                        CHECK_FCT(fd_dict_new(fd_g_config->cnf_dict, DICT_VENDOR, &vendor_data, NULL, &vendor));
    153155                }
    154156                {
     
    1088610888                        PARSE_loc_rules(rules, rule_avp);
    1088710889        }
    10888        
     10890
     10891        if (conffile && (0 == strcmp(conffile, "dumpdict")))  {
     10892                char * tbuf = NULL; size_t tbuflen = 0;
     10893                LOG_D("dict_dcca_3gpp dictionary: %s", fd_dict_dump_object(&tbuf, &tbuflen, NULL, vendor));
     10894                free(tbuf);
     10895        }
     10896
    1088910897        LOG_D( "Extension 'Dictionary definitions for DCCA 3GPP' initialized");
    1089010898        return 0;
Note: See TracChangeset for help on using the changeset viewer.