Navigation


Changeset 776:03b8d4544842 in freeDiameter for extensions/dict_mip6a


Ignore:
Timestamp:
Nov 23, 2011, 9:34:16 AM (12 years ago)
Author:
Romain Kuntz <rkuntz@us.toyota-itc.com>
Branch:
default
Phase:
public
Message:

Fixed the mip6a dictionnary. The MIP-Agent-Info AVP does not exist and should be MIP6-Agent-Info (I reported an errata to the RFC5778). The MIP6-Answer command must set the CMD_FLAG_REQUEST flag mask (mandated by libfdproto/dictionary.c in fd_dict_new(), which checks if the flag is set for DICT_COMMAND)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/dict_mip6a/dict_mip6a.c

    r775 r776  
    8181        MIP6-Feature-Vector                     ----------------------------------
    8282        MIP-Mobile-Node-Address                 ----------------------------------
    83         MIP-Agent-Info                          ----------------------------------
     83        MIP6-Agent-Info                         ----------------------------------
    8484        Chargeable-User-Identity                ----------------------------------
    8585        Service-Selection                       ----------------------------------
     
    962962                                        "MIP6-Request",                         /* Name */
    963963                                        CMD_FLAG_REQUEST | CMD_FLAG_PROXIABLE | CMD_FLAG_ERROR,         /* Fixed flags */
    964                                         CMD_FLAG_PROXIABLE                                              /* Fixed flag values */
     964                                        CMD_FLAG_REQUEST | CMD_FLAG_PROXIABLE                                           /* Fixed flag values */
    965965                                        };
    966966                        struct local_rules_definition rules[] =
     
    10001000                                                };
    10011001
    1002                         CHECK_dict_new( DICT_COMMAND, &data , mip6a, &cmd);
     1002                        CHECK_dict_new( DICT_COMMAND, &data, mip6a, &cmd);
    10031003                        PARSE_loc_rules( rules, cmd );
    10041004                }
     
    10351035                                          [ Re-Auth-Request-Type ]
    10361036                                          [ MIP6-Feature-Vector ]
    1037                                           [ MIP-Agent-Info ]
     1037                                          [ MIP6-Agent-Info ]
    10381038                                        *2[ MIP-Mobile-Node-Address ]
    10391039                                          [ MIP-MN-HA-MSA ]
     
    10541054                                        325,                                    /* Code */
    10551055                                        "MIP6-Answer",                          /* Name */
    1056                                         CMD_FLAG_PROXIABLE | CMD_FLAG_ERROR,    /* Fixed flags */
     1056                                        CMD_FLAG_REQUEST | CMD_FLAG_PROXIABLE | CMD_FLAG_ERROR,         /* Fixed flags */
    10571057                                        CMD_FLAG_PROXIABLE                      /* Fixed flag values */
    10581058                                        };
     
    10711071                                                        ,{  "Re-Auth-Request-Type",             RULE_OPTIONAL,   -1, 1 }
    10721072                                                        ,{  "MIP6-Feature-Vector",              RULE_OPTIONAL,   -1, 1 }
    1073                                                         ,{  "MIP-Agent-Info",                   RULE_OPTIONAL,   -1, 1 }
     1073                                                        ,{  "MIP6-Agent-Info",                  RULE_OPTIONAL,   -1, 1 }
    10741074                                                        ,{  "MIP-Mobile-Node-Address",          RULE_OPTIONAL,   -1, 2 }
    10751075                                                        ,{  "MIP-MN-HA-MSA",                    RULE_OPTIONAL,   -1, 1 }
     
    10851085                                                };
    10861086
    1087                         CHECK_dict_new( DICT_COMMAND, &data , mip6a, &cmd);
     1087                        CHECK_dict_new( DICT_COMMAND, &data, mip6a, &cmd);
    10881088                        PARSE_loc_rules( rules, cmd );
    10891089                }
Note: See TracChangeset for help on using the changeset viewer.