Navigation


Changeset 831:7dec09939400 in freeDiameter


Ignore:
Timestamp:
Sep 28, 2012, 3:55:59 AM (12 years ago)
Author:
Sebastien Decugis <sdecugis@freediameter.net>
Branch:
default
Phase:
public
Message:

Sort 3GPP types by Code. -- Thomas Klausner <tk@giga.or.at>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • contrib/dict_dcca/dict_dcca_3gpp.c

    r800 r831  
    266266                }
    267267
    268                 /* 3GPP-IMSI-MCC-MNC */
    269                 {
    270                   /*
    271                     UTF8String. MCC and MNC extracted from the
    272                     user's IMSI (first 5 or 6 digits, as applicable from
    273                     the presented IMSI). The MCC-MNCs are
    274                     extracted from the tables configured in FlexiISN
    275                     configuration under the General and Roaming
    276                     configurations.
    277                   */
    278                   struct dict_avp_data data = {
    279                     8,                                    /* Code */
    280                     10415,                                      /* Vendor */
    281                     "3GPP-IMSI-MCC-MNC",                    /* Name */
    282                     AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY,   /* Fixed flags */
    283                     AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY,                     /* Fixed flag values */
    284                     AVP_TYPE_OCTETSTRING                      /* base type of data */
    285                   };
    286                   CHECK_dict_new( DICT_AVP, &data , UTF8String_type, NULL);
    287                 }
    288 
    289                 /* 3GPP-GGSN-Address */
    290                 {
    291                   /*
    292                     Address. (3GPP TS 32.299 Rel7 ). Usually the IP
    293                     address of Flexi ISN. The only exception is when
    294                     the Flexi ISN acts as a NAS server and the
    295                     charging ID selection is set to NAS Client; then the
    296                     GGSN IP address will be the NAIP address. Present in the initial CCR only.S client
    297                   */
    298 
    299                   struct dict_avp_data data = {
    300                     847,                                    /* Code */
    301                     10415,                                      /* Vendor */
    302                     "3GPP-GGSN-Address",                      /* Name */
    303                     AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY,   /* Fixed flags */
    304                     AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY,                     /* Fixed flag values */
    305                     AVP_TYPE_OCTETSTRING                    /* base type of data */
    306                   };
    307                   CHECK_dict_new( DICT_AVP, &data , Address_type, NULL);
    308                 }
    309 
    310                 /* 3GPP-SGSN-Address */
    311                 {
    312                   /*
    313                      Address. (3GPP TS 32.299 Rel7 ). The IP address
    314                      of the SGSN Gn interface. In update and termina-
    315                      tion requests, this AVP is present only when the
    316                      CCR has been triggered by a routing area update.
    317                   */
    318                   struct dict_avp_data data = {
    319                     1228,                                    /* Code */
    320                     10415,                                      /* Vendor */
    321                     "3GPP-SGSN-Address",                      /* Name */
    322                     AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY,   /* Fixed flags */
    323                     AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY,                     /* Fixed flag values */
    324                     AVP_TYPE_OCTETSTRING                    /* base type of data */
    325                   };
    326                   CHECK_dict_new( DICT_AVP, &data , Address_type, NULL);
    327                 }
    328 
    329268                /* 3GPP-Charging-Id */
    330269                {
     
    350289                }
    351290
     291                /* 3GPP-PDP-Type */
     292                {
     293                  /*
     294                    Enumerated. (3GPP TS 29.061 Rel7 ). Type of
     295                    PDP context, for example, IP or PPP. Present in
     296                    the initial CCR only.
     297                  */
     298                  struct dict_avp_data    data = {
     299                    3,                                    /* Code */
     300                    10415,                                      /* Vendor */
     301                    "3GPP-PDP-Type",                    /* Name */
     302                    AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY,   /* Fixed flags */
     303                    AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY,                     /* Fixed flag values */
     304                    AVP_TYPE_INTEGER32                      /* base type of data */
     305                  };
     306                  CHECK_dict_new( DICT_AVP, &data , NULL, NULL);
     307                }
     308
     309                /* 3GPP-CG-Address */
     310                {
     311                  /*
     312                    OctetString. (3GPP TS 29.061 Rel4). The address
     313                    of the charging gateway that has been marked as
     314                    the default charging gateway for the PDP context.
     315                    The address is expressed as a four-byte integer.
     316                    Present in the initial CCR only.
     317                  */
     318                  struct dict_avp_data data = {
     319                    4,                                    /* Code */
     320                    10415,                                      /* Vendor */
     321                    "3GPP-CG-Address",                      /* Name */
     322                    AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY,   /* Fixed flags */
     323                    AVP_FLAG_VENDOR,                     /* Fixed flag values */
     324                    AVP_TYPE_OCTETSTRING                     /* base type of data */
     325                  };
     326                  CHECK_dict_new( DICT_AVP, &data , NULL, NULL);
     327                }
     328
    352329                /* 3GPP-GPRS-Neg-QoS-Profile */
    353330                {
     
    363340                    10415,                                      /* Vendor */
    364341                    "3GPP-GPRS-Neg-QoS-Profile",                    /* Name */
     342                    AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY,   /* Fixed flags */
     343                    AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY,                     /* Fixed flag values */
     344                    AVP_TYPE_OCTETSTRING                      /* base type of data */
     345                  };
     346                  CHECK_dict_new( DICT_AVP, &data , UTF8String_type, NULL);
     347                }
     348
     349                /* 3GPP-SGSN-IP-Address */
     350                {
     351                  /*
     352                    OctetString. (3GPP TS 29.061 Rel4). The address
     353                    of the charging gateway that has been marked as
     354                    the default charging gateway for the PDP context.
     355                    The address is expressed as a four-byte integer.
     356                    Present in the initial CCR only.
     357                  */
     358                  struct dict_avp_data data = {
     359                    6,                                    /* Code */
     360                    10415,                                      /* Vendor */
     361                    "3GPP-SGSN-IP-Address",                      /* Name */
     362                    AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY,   /* Fixed flags */
     363                    AVP_FLAG_VENDOR,                     /* Fixed flag values */
     364                    AVP_TYPE_OCTETSTRING                     /* base type of data */
     365                  };
     366                  CHECK_dict_new( DICT_AVP, &data , NULL, NULL);
     367                }               
     368
     369                /* 3GPP-GGSN-IP-Address */
     370                {
     371                  /*
     372                    OctetString. (3GPP TS 29.061 Rel4). Usually the
     373                    IP address of Flexi ISN. The only exception is
     374                    when the Flexi ISN acts as a NAS server and the
     375                    charging ID selection is set to NAS Client; then the
     376                    GGSN IP address will be the NAIP address. Present in the initial CCR only.S client
     377                  */
     378                  struct dict_avp_data data = {
     379                    7,                                    /* Code */
     380                    10415,                                      /* Vendor */
     381                    "3GPP-GGSN-IP-Address",                      /* Name */
     382                    AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY,   /* Fixed flags */
     383                    AVP_FLAG_VENDOR,                     /* Fixed flag values */
     384                    AVP_TYPE_OCTETSTRING                     /* base type of data */
     385                  };
     386                  CHECK_dict_new( DICT_AVP, &data , NULL, NULL);
     387                }
     388
     389                /* 3GPP-IMSI-MCC-MNC */
     390                {
     391                  /*
     392                    UTF8String. MCC and MNC extracted from the
     393                    user's IMSI (first 5 or 6 digits, as applicable from
     394                    the presented IMSI). The MCC-MNCs are
     395                    extracted from the tables configured in FlexiISN
     396                    configuration under the General and Roaming
     397                    configurations.
     398                  */
     399                  struct dict_avp_data data = {
     400                    8,                                    /* Code */
     401                    10415,                                      /* Vendor */
     402                    "3GPP-IMSI-MCC-MNC",                    /* Name */
     403                    AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY,   /* Fixed flags */
     404                    AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY,                     /* Fixed flag values */
     405                    AVP_TYPE_OCTETSTRING                      /* base type of data */
     406                  };
     407                  CHECK_dict_new( DICT_AVP, &data , UTF8String_type, NULL);
     408                }
     409
     410                /* 3GPP-GGSN-MCC-MNC */
     411                {
     412                  /*
     413                     UTF8String. (3GPP TS 29.061 Rel7 ). Contains
     414                     the mobile country and network code of the PLMN
     415                     that the Flexi ISN belongs to. Present in the initial
     416                     CCR only. The first entry in the list of local PLMNs
     417                     in the Flexi ISN configuration determines the value
     418                     of this AVP.
     419                  */
     420                  struct dict_avp_data data = {
     421                    9,                                    /* Code */
     422                    10415,                                      /* Vendor */
     423                    "3GPP-GGSN-MCC-MNC",                    /* Name */
     424                    AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY,   /* Fixed flags */
     425                    AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY,                     /* Fixed flag values */
     426                    AVP_TYPE_OCTETSTRING                      /* base type of data */
     427                  };
     428                  CHECK_dict_new( DICT_AVP, &data , UTF8String_type, NULL);
     429                }
     430
     431                /* 3GPP-NSAPI */
     432                {
     433                  /*
     434                     UTF8String. (3GPP TS 29.061 Rel7 ). Indicates
     435                     the NSAPI of the PDP context. Contains one octet
     436                     consisting of a single digit. Present in the initial
     437                     CCR only.
     438                  */
     439                  struct dict_avp_data data = {
     440                    10,                                    /* Code */
     441                    10415,                                      /* Vendor */
     442                    "3GPP-NSAPI",                    /* Name */
     443                    AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY,   /* Fixed flags */
     444                    AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY,                     /* Fixed flag values */
     445                    AVP_TYPE_OCTETSTRING                      /* base type of data */
     446                  };
     447                  CHECK_dict_new( DICT_AVP, &data , UTF8String_type, NULL);
     448                }
     449
     450                /* 3GPP-Selection-Mode */
     451                {
     452                  /*
     453                    UTF8String. (3GPP TS 29.061 Rel7 ). Consists of
     454                    one octet containing the selection mode as
     455                    received from SGSN in the Create PDP Context
     456                    Request. Present in the initial CCR only.
     457                  */
     458                  struct dict_avp_data data = {
     459                    12,                                    /* Code */
     460                    10415,                                      /* Vendor */
     461                    "3GPP-Selection-Mode",                    /* Name */
    365462                    AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY,   /* Fixed flags */
    366463                    AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY,                     /* Fixed flag values */
     
    391488                }
    392489
    393                 /* 3GPP-PDP-Type */
    394                 {
    395                   /*
    396                     Enumerated. (3GPP TS 29.061 Rel7 ). Type of
    397                     PDP context, for example, IP or PPP. Present in
    398                     the initial CCR only.
    399                   */
    400                   struct dict_avp_data    data = {
    401                     3,                                    /* Code */
    402                     10415,                                      /* Vendor */
    403                     "3GPP-PDP-Type",                    /* Name */
    404                     AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY,   /* Fixed flags */
    405                     AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY,                     /* Fixed flag values */
    406                     AVP_TYPE_INTEGER32                      /* base type of data */
    407                   };
    408                   CHECK_dict_new( DICT_AVP, &data , NULL, NULL);
    409                 }
    410 
    411490                /* 3GPP-SGSN-MCC-MNC */
    412491                {
     
    428507                  };
    429508                  CHECK_dict_new( DICT_AVP, &data , UTF8String_type, NULL);
    430                 }
    431 
    432                 /* CG-Address */
    433                 {
    434                   /*
    435                     Address. (3GPP 32.299 Rel7). The address of the
    436                     charging gateway that has been marked as the
    437                     default charging gateway for the PDP context.
    438                     Present in the initial CCR only.
    439                   */
    440                   struct dict_avp_data data = {
    441                     846,                                    /* Code */
    442                     10415,                                      /* Vendor */
    443                     "CG-Address",                      /* Name */
    444                     AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY,   /* Fixed flags */
    445                     AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY,                     /* Fixed flag values */
    446                     AVP_TYPE_OCTETSTRING                    /* base type of data */
    447                   };
    448                   CHECK_dict_new( DICT_AVP, &data , Address_type, NULL);
    449                 }
    450 
    451                 /* 3GPP-GGSN-MCC-MNC */
    452                 {
    453                   /*
    454                      UTF8String. (3GPP TS 29.061 Rel7 ). Contains
    455                      the mobile country and network code of the PLMN
    456                      that the Flexi ISN belongs to. Present in the initial
    457                      CCR only. The first entry in the list of local PLMNs
    458                      in the Flexi ISN configuration determines the value
    459                      of this AVP.
    460                   */
    461                   struct dict_avp_data data = {
    462                     9,                                    /* Code */
    463                     10415,                                      /* Vendor */
    464                     "3GPP-GGSN-MCC-MNC",                    /* Name */
    465                     AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY,   /* Fixed flags */
    466                     AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY,                     /* Fixed flag values */
    467                     AVP_TYPE_OCTETSTRING                      /* base type of data */
    468                   };
    469                   CHECK_dict_new( DICT_AVP, &data , UTF8String_type, NULL);
    470                 }
    471 
    472                 /* 3GPP-NSAPI */
    473                 {
    474                   /*
    475                      UTF8String. (3GPP TS 29.061 Rel7 ). Indicates
    476                      the NSAPI of the PDP context. Contains one octet
    477                      consisting of a single digit. Present in the initial
    478                      CCR only.
    479                   */
    480                   struct dict_avp_data data = {
    481                     10,                                    /* Code */
    482                     10415,                                      /* Vendor */
    483                     "3GPP-NSAPI",                    /* Name */
    484                     AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY,   /* Fixed flags */
    485                     AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY,                     /* Fixed flag values */
    486                     AVP_TYPE_OCTETSTRING                      /* base type of data */
    487                   };
    488                   CHECK_dict_new( DICT_AVP, &data , UTF8String_type, NULL);
    489                 }
    490 
    491                 /* 3GPP-Selection-Mode */
    492                 {
    493                   /*
    494                     UTF8String. (3GPP TS 29.061 Rel7 ). Consists of
    495                     one octet containing the selection mode as
    496                     received from SGSN in the Create PDP Context
    497                     Request. Present in the initial CCR only.
    498                   */
    499                   struct dict_avp_data data = {
    500                     12,                                    /* Code */
    501                     10415,                                      /* Vendor */
    502                     "3GPP-Selection-Mode",                    /* Name */
    503                     AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY,   /* Fixed flags */
    504                     AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY,                     /* Fixed flag values */
    505                     AVP_TYPE_OCTETSTRING                      /* base type of data */
    506                   };
    507                   CHECK_dict_new( DICT_AVP, &data , UTF8String_type, NULL);
    508 
    509509                }
    510510
     
    572572                }
    573573
     574                /* 3GPP-GGSN-Address */
     575                {
     576                  /*
     577                    Address. (3GPP TS 32.299 Rel7 ). Usually the IP
     578                    address of Flexi ISN. The only exception is when
     579                    the Flexi ISN acts as a NAS server and the
     580                    charging ID selection is set to NAS Client; then the
     581                    GGSN IP address will be the NAIP address. Present in the initial CCR only.S client
     582                  */
     583                  struct dict_avp_data data = {
     584                    847,                                    /* Code */
     585                    10415,                                      /* Vendor */
     586                    "3GPP-GGSN-Address",                      /* Name */
     587                    AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY,   /* Fixed flags */
     588                    AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY,                     /* Fixed flag values */
     589                    AVP_TYPE_OCTETSTRING                    /* base type of data */
     590                  };
     591                  CHECK_dict_new( DICT_AVP, &data , Address_type, NULL);
     592                }
     593
     594                /* 3GPP-SGSN-Address */
     595                {
     596                  /*
     597                     Address. (3GPP TS 32.299 Rel7 ). The IP address
     598                     of the SGSN Gn interface. In update and termina-
     599                     tion requests, this AVP is present only when the
     600                     CCR has been triggered by a routing area update.
     601                  */
     602                  struct dict_avp_data data = {
     603                    1228,                                    /* Code */
     604                    10415,                                      /* Vendor */
     605                    "3GPP-SGSN-Address",                      /* Name */
     606                    AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY,   /* Fixed flags */
     607                    AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY,                     /* Fixed flag values */
     608                    AVP_TYPE_OCTETSTRING                    /* base type of data */
     609                  };
     610                  CHECK_dict_new( DICT_AVP, &data , Address_type, NULL);
     611                }
     612
     613                /* CG-Address */
     614                {
     615                  /*
     616                    Address. (3GPP 32.299 Rel7). The address of the
     617                    charging gateway that has been marked as the
     618                    default charging gateway for the PDP context.
     619                    Present in the initial CCR only.
     620                  */
     621                  struct dict_avp_data data = {
     622                    846,                                    /* Code */
     623                    10415,                                      /* Vendor */
     624                    "CG-Address",                      /* Name */
     625                    AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY,   /* Fixed flags */
     626                    AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY,                     /* Fixed flag values */
     627                    AVP_TYPE_OCTETSTRING                    /* base type of data */
     628                  };
     629                  CHECK_dict_new( DICT_AVP, &data , Address_type, NULL);
     630                }
     631
    574632                /* PDP-Context-Type */
    575633                {
     
    678736                  CHECK_dict_new( DICT_AVP, &data , NULL, NULL);
    679737                }
    680 
    681                 /* 3GPP-GGSN-IP-Address */
    682                 {
    683                   /*
    684                     OctetString. (3GPP TS 29.061 Rel4). Usually the
    685                     IP address of Flexi ISN. The only exception is
    686                     when the Flexi ISN acts as a NAS server and the
    687                     charging ID selection is set to NAS Client; then the
    688                     GGSN IP address will be the NAIP address. Present in the initial CCR only.S client
    689                   */
    690                   struct dict_avp_data data = {
    691                     7,                                    /* Code */
    692                     10415,                                      /* Vendor */
    693                     "3GPP-GGSN-IP-Address",                      /* Name */
    694                     AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY,   /* Fixed flags */
    695                     AVP_FLAG_VENDOR,                     /* Fixed flag values */
    696                     AVP_TYPE_OCTETSTRING                     /* base type of data */
    697                   };
    698                   CHECK_dict_new( DICT_AVP, &data , NULL, NULL);
    699                 }
    700 
    701                 /* 3GPP-CG-Address */
    702                 {
    703                   /*
    704                     OctetString. (3GPP TS 29.061 Rel4). The address
    705                     of the charging gateway that has been marked as
    706                     the default charging gateway for the PDP context.
    707                     The address is expressed as a four-byte integer.
    708                     Present in the initial CCR only.
    709                   */
    710                   struct dict_avp_data data = {
    711                     4,                                    /* Code */
    712                     10415,                                      /* Vendor */
    713                     "3GPP-CG-Address",                      /* Name */
    714                     AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY,   /* Fixed flags */
    715                     AVP_FLAG_VENDOR,                     /* Fixed flag values */
    716                     AVP_TYPE_OCTETSTRING                     /* base type of data */
    717                   };
    718                   CHECK_dict_new( DICT_AVP, &data , NULL, NULL);
    719                 }
    720 
    721                 /* 3GPP-SGSN-IP-Address */
    722                 {
    723                   /*
    724                     OctetString. (3GPP TS 29.061 Rel4). The address
    725                     of the charging gateway that has been marked as
    726                     the default charging gateway for the PDP context.
    727                     The address is expressed as a four-byte integer.
    728                     Present in the initial CCR only.
    729                   */
    730                   struct dict_avp_data data = {
    731                     6,                                    /* Code */
    732                     10415,                                      /* Vendor */
    733                     "3GPP-SGSN-IP-Address",                      /* Name */
    734                     AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY,   /* Fixed flags */
    735                     AVP_FLAG_VENDOR,                     /* Fixed flag values */
    736                     AVP_TYPE_OCTETSTRING                     /* base type of data */
    737                   };
    738                   CHECK_dict_new( DICT_AVP, &data , NULL, NULL);
    739                 }               
    740738
    741739                /* Session-Stop-Indicator */
Note: See TracChangeset for help on using the changeset viewer.