Navigation


Changeset 800:35f3fe884dc9 in freeDiameter


Ignore:
Timestamp:
Aug 21, 2012, 8:34:20 PM (12 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Updates sent by Konstantin to the dict_dcca files

Files:
3 added
2 edited

Legend:

Unmodified
Added
Removed
  • contrib/README

    r726 r800  
    5252- dict_legacy: XML and DTD files for the dict_legacy_xml.fdx extension.
    5353
     54- dict_dcca: partial implementations of the DCCA dictionary
     55
    5456- wireshark: This contains some information on how to use Wireshark to monitor Diameter
    5557        exchange protected with TLS. It involves patching the wireshark software.
  • extensions/dict_dcca/dict_dcca.c

    r739 r800  
    11/****************
    22 Contributed by: Konstantin Chekushin <koch@lmt.lv>
    3  License: to be specified.
     3 License: same as freeDiameter
    44 TODO:
    5   - CCR/CCA definition missing.
    65  - rules for CCR/CCA and all Grouped AVPs
    7   - new Result-Code values
    86 ****************/
    97
     
    8280        }
    8381       
     82    /* Result codes */
     83    {
     84        struct dict_object *ResultCodeType;
     85        CHECK_dict_search(DICT_TYPE, TYPE_BY_NAME, "Enumerated*(Result-Code)", &ResultCodeType);
     86
     87        {
     88            struct dict_enumval_data error_code = {"END_USER_SERVICE_DENIED",
     89                { .u32 = 4010}};
     90            CHECK_dict_new(DICT_ENUMVAL, &error_code, ResultCodeType, NULL);
     91        }
     92        {
     93            struct dict_enumval_data error_code = {"CREDIT_CONTROL_NOT_APPLICABLE",
     94                { .u32 = 4011}};
     95            CHECK_dict_new(DICT_ENUMVAL, &error_code, ResultCodeType, NULL);
     96        }
     97
     98    }
     99
     100
     101    /* Commands section */
     102    {
     103        /*Credit Control Request*/
     104        {
     105            struct dict_object * cmd;
     106            struct dict_cmd_data data = {
     107                272, /* Code */
     108                "Credit-Control-Request", /* Name */
     109                CMD_FLAG_REQUEST | CMD_FLAG_PROXIABLE | CMD_FLAG_ERROR, /* Fixed flags */
     110                CMD_FLAG_REQUEST | CMD_FLAG_PROXIABLE /* Fixed flag values */
     111            };
     112            CHECK_dict_new(DICT_COMMAND, &data, NULL, &cmd);
     113        }
     114
     115        /*Credit Control Response*/
     116        {
     117            struct dict_object * cmd;
     118            struct dict_cmd_data data = {
     119                272, /* Code */
     120                "Credit-Control-Answer", /* Name */
     121                CMD_FLAG_REQUEST | CMD_FLAG_PROXIABLE, /* Fixed flags */
     122                CMD_FLAG_PROXIABLE /* Fixed flag values */
     123            };
     124            CHECK_dict_new(DICT_COMMAND, &data, NULL, &cmd);
     125        }
     126    }
    84127       
    85128        /* AVP section */
Note: See TracChangeset for help on using the changeset viewer.