Navigation


Changeset 597:f051e3795dae in freeDiameter for extensions/dict_mip6i


Ignore:
Timestamp:
Nov 17, 2010, 7:56:35 PM (13 years ago)
Author:
Francois Bard <francois@tera.ics.keio.ac.jp>
Branch:
default
Children:
598:d46af51c019d, 599:1dade7d4cf2e
Phase:
public
Message:

Updates comments and a compiler dependent piece of code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/dict_mip6i/dict_mip6i.c

    r595 r597  
    3434*********************************************************************************************************/
    3535
    36 /*********************************************************************************************************
     36/*
     37
    3738The following table complete the one in RFC 5778, page 18. The AVPs are implemented below following the order of this table.
    3839We try to keep the structure of the grouped AVP by declaring the contained AVPs just before the grouped AVP they depend on.
     
    4445        MIP-Mobile-Node-Address                 333     4004            Address
    4546+       MIP-Home-Agent-Address                  334     4004            Address
    46 ++      Destination-Host                        293     3588            DiameterIdentity        implemented in base protocol
    47 ++      Destination-Realm                       283     3588            DiameterIdentity        implemented in base protocol
     47++      Destination-Host                        293     3588            DiameterIdentity
     48++      Destination-Realm                       283     3588            DiameterIdentity
    4849+       MIP-Home-Agent-Host                     348     4004            Grouped
    4950+       MIP6-Home-Link-Prefix                   125     5447            OctetString
    5051        MIP6-Agent-Info                         486     5447            Grouped
    51         User-Name                               1       3588            UTF8String              implemented in base protocol
     52        User-Name                               1       3588            UTF8String
    5253        Service-Selection                       493     5778            UTF8String
    5354+       MIP-Replay-Mode                         346     4004            Enumerated
     
    7071        Accounting-Input-Packets                365     4004, 4005      Unsigned64
    7172        Accounting-Output-Packets               366     4004, 4005      Unsigned64
    72         Acct-Multi-Session-Id                   50      3588            UTF8String              implemented in base protocol
     73        Acct-Multi-Session-Id                   50      3588            UTF8String
    7374        Acct-Session-Time                       46      2866, 4004      Unsigned32
    7475        MIP6-Feature-Vector                     ----------------------------------
     
    7980        QoS-Resources                           ----------------------------------
    8081        QoS-Capability                          ----------------------------------
    81         MIP-Careof-Address                      487     5778            Address                 needed in MIP6I at least for implementation reasons
    82 
    83 REST OF THE AVPs IN THE MIR & MIA EXCLUDING *[AVP]
     82        MIP-Careof-Address                      487     5778            Address                 needed (appears in MIR/MIA)
     83
     84REST OF THE AVPs IN THE MIR & MIA EXCLUDING *[AVP] (as written on page 19 of RFC 5778)
    8485
    8586MIP6-Request
    8687
    87         Session-ID                              263     3588 (diameter)
     88        Session-ID                              263     3588
    8889        Auth-Application-Id                     258     3588
    8990        User-Name                               1       3588
     
    9293        Origin-Realm                            296     3588
    9394        Auth-Request-Type                       274     3588
    94         Destination-Host                        293     3588
    9595        Origin-State-Id                         278     3588
    96         NAS-Identifier                          32      2865 (radius)   string...               needed
    97         NAS-IP-Address                          4       2865             ??                     needed
    98         NAS-IPv6-Address                        95      3162             ??                     needed
    99         NAS-Port-Type                           61      2865             ??                     needed
    100         Called-Station-Id                       30      2865             ??                     needed
    101         Calling-Station-Id                      31      2865             ??                     needed
     96        NAS-Identifier                          32      2865            radius (see avp)        needed (radius)
     97        NAS-IP-Address                          4       2865            radius (see avp)        needed (radius)
     98        NAS-IPv6-Address                        95      3162            radius (see avp)        needed (radius)
     99        NAS-Port-Type                           61      2865            radius (see avp)        needed (radius)
     100        Called-Station-Id                       30      2865            radius (see avp)        needed (radius)
     101        Calling-Station-Id                      31      2865            radius (see avp)        needed (radius)
    102102        MIP6-Feature-Vector                     ------------
    103         MIP6-Auth-Mode                          494     5778            Enumerated              needed in MIP6I at least for implementation reasons
    104         MIP-MN-AAA-SPI                          341     5778            Unsigned32              needed in MIP6I at least for implementation reasons
     103        MIP6-Auth-Mode                          494     5778            Enumerated              needed (mip6a)
     104        MIP-MN-AAA-SPI                          341     5778            Unsigned32              needed (mip6a)
    105105        MIP-MN-HA-SPI                           ------------
    106106        MIP-Mobile-Node-Address                 ------------
    107107        MIP6-Agent-Info                         ------------
    108108        MIP-Careof-Address                      ------------
    109         MIP-Authenticator                       488     5778            OctetString             needed in MIP6I at least for implementation reasons
    110         MIP-MAC-Mobility-Data                   489     5778            OctetString             needed in MIP6I at least for implementation reasons
    111         MIP-Timestamp                           490     5778            OctetString             needed in MIP6I at least for implementation reasons
     109        MIP-Authenticator                       488     5778            OctetString             needed (mip6a)
     110        MIP-MAC-Mobility-Data                   489     5778            OctetString             needed (mip6a)
     111        MIP-Timestamp                           490     5778            OctetString             needed (mip6a)
    112112        QoS-Capability                          ------------
    113113        QoS-Resources                           ------------
     
    121121MIP6-Answer - All of them are already implemented as base protocol AVPs or implemented earlier.
    122122
    123         Session-Id                              263     3588 (diameter)
    124         Auth-Application-Id                     258     3588
    125         Result-Code                             268     3588
    126         Origin-Host                             264     3588
    127         Origin-Realm                            296     3588
    128         Auth-Request-Type                       274     3588
    129         User-Name                               1       3588
    130         Authorization-Lifetime                  291     3588
    131         Auth-Session-State                      277     3588
    132         Error-Message                           281     3588
    133         Error-Reporting-Host                    294     3588
    134         Re-Auth-Request-Type                    285     3588
    135         MIP6-Feature-Vector                     -------------------
    136         MIP-Agent-Info                          -------------------
    137         MIP-Mobile-Node-Address                 -------------------
    138         MIP-MN-HA-MSA                           -------------------
    139         QoS-Resources                           -------------------
    140         Chargeable-User-Identity                -------------------
    141         Service-Selection                       -------------------
    142         Origin-State-Id                         278     3588
    143         Proxy-Info                              284     3588
    144         Redirect-Host                           292     3588
    145         Redirect-Host-Usage                     261     3588
    146         Redirect-Max-Cache-Time                 262     3588
    147         Failed-AVP                              279     3588
    148 
    149 Other AVPs?
    150 
    151 ************************************************************************************************************/
     123*/
    152124
    153125/****************************************************************************************************************************************
     
    155127* This table is a copy of the registry named "MIP6 Authentication Mode Registry" and managed by IANA.                                   *
    156128* source : http://www.iana.org/assignments/aaa-parameters/aaa-parameters.txt                                                            *
    157 *                                                                                                                                       *
     129* up to date on october 2010                                                                                                            *
    158130*                                                                                                                                       *
    159131*      Value          Token       Reference                                                                                             *
     
    166138
    167139/*
    168         NOTES TO SELF
    169 
    170         http://www.iana.org/assignments/aaa-parameters/aaa-parameters.txt
    171         important, a suivre et verifier si il y a des evolutions
    172 
    173         - a quoi sert le int dict---init juste avant le debut du dico?
    174 
    175         -verifier si je ne fais pas des define pour rien
    176 
    177         -dire de pas oublier d'inclure le dictionnaire eap
    178 
    179         inclure la rfc5777? ou le faire dans un autre fichier?
    180 
    181         la valeur MIP6_AUTH_MN_AAA est utilisee par quoi?? verifier.
    182 
    183         ne pas oublier de changer la clause bsd
    184 
    185 
    186 
    187 
     140
     141NOTES
     142
     143check for omissions !
    188144
    189145*/
     
    244200/* Defines if there are any */
    245201
    246 /* New Result-Code for MIP (RFC5778, Section 7.*) */
     202//New Result-Code for MIP (RFC5778, Section 7.*)
    247203#define DIAMETER_SUCCESS_RELOCATE_HA 2009
    248204#define DIAMETER_ERROR_MIP6_AUTH_MODE 5041
     205
     206//others
    249207#define MIP6_AUTH_MN_AAA 1
    250208
     
    872830
    873831        ///////////////////////////////////////////////////////////
    874         /* Other AVPs needed in MIP6I for implementation reasons */
     832        /* REST OF THE AVP IN THE MIR AND MIA EXCLUDING *[AVP]  */
    875833        ///////////////////////////////////////////////////////////
    876834
Note: See TracChangeset for help on using the changeset viewer.