Mercurial > hg > freeDiameter
comparison extensions/dict_dcca_3gpp/add_avps.c @ 1523:7f7a7cc2ce1f
Fix types of 3GPP Max-PLR-DL, Max-PLR-UL
3GPP TS 29.212 table 5.3.0.1 row Max-PLR-DL (2852)
incorrectly lists type as Unsigned32 instead of Float32.
3GPP TS 29.212 clause 5.3.138 uses Float32.
Fix: Max-PLR-DL (2852) type changed from Float32 to Unsigned32.
3GPP TS 29.212 table 5.3.0.1 row Max-PLR-UL (2853)
incorrectly lists type as Unsigned32 instead of Float32.
3GPP TS 29.212 clause 5.3.139 uses Float32.
Fix: Max-PLR-UL (2853) type changed from Float32 to Unsigned32.
author | Luke Mewburn <luke@mewburn.net> |
---|---|
date | Sat, 18 Apr 2020 10:20:07 +1000 |
parents | fa7874f2bfee |
children | 195f3fe9b4ed |
comparison
equal
deleted
inserted
replaced
1522:fa7874f2bfee | 1523:7f7a7cc2ce1f |
---|---|
4001 struct dict_type_data tdata = { AVP_TYPE_INTEGER32, "Enumerated(3GPP/IP-CAN-Type)", NULL, NULL, NULL }; | 4001 struct dict_type_data tdata = { AVP_TYPE_INTEGER32, "Enumerated(3GPP/IP-CAN-Type)", NULL, NULL, NULL }; |
4002 CHECK_dict_new(DICT_TYPE, &tdata, NULL, &type); | 4002 CHECK_dict_new(DICT_TYPE, &tdata, NULL, &type); |
4003 CHECK_dict_new(DICT_AVP, &data, type, NULL); | 4003 CHECK_dict_new(DICT_AVP, &data, type, NULL); |
4004 }; | 4004 }; |
4005 | 4005 |
4006 /* Max-PLR-DL, Float32, code 2852, section 5.3.138 */ | 4006 /* Note: 3GPP TS 29.212 table 5.3.0.1 row Max-PLR-DL (2852) */ |
4007 /* incorrectly lists type as Unsigned32 instead of Float32. */ | |
4008 /* 3GPP TS 29.212 clause 5.3.138 uses Float32. */ | |
4009 /* */ | |
4010 /* Fix: Max-PLR-DL (2852) type changed from Float32 to Unsigned32. */ | |
4011 /* Max-PLR-DL, Unsigned32, code 2852, section 5.3.138 */ | |
4007 { | 4012 { |
4008 struct dict_avp_data data = { | 4013 struct dict_avp_data data = { |
4009 2852, /* Code */ | 4014 2852, /* Code */ |
4010 10415, /* Vendor */ | 4015 10415, /* Vendor */ |
4011 "Max-PLR-DL", /* Name */ | 4016 "Max-PLR-DL", /* Name */ |
4012 AVP_FLAG_VENDOR |AVP_FLAG_MANDATORY, /* Fixed flags */ | 4017 AVP_FLAG_VENDOR |AVP_FLAG_MANDATORY, /* Fixed flags */ |
4013 AVP_FLAG_VENDOR, /* Fixed flag values */ | 4018 AVP_FLAG_VENDOR, /* Fixed flag values */ |
4014 AVP_TYPE_FLOAT32 /* base type of data */ | 4019 AVP_TYPE_UNSIGNED32 /* base type of data */ |
4015 }; | 4020 }; |
4016 CHECK_dict_new(DICT_AVP, &data, NULL, NULL); | 4021 CHECK_dict_new(DICT_AVP, &data, NULL, NULL); |
4017 }; | 4022 }; |
4018 | 4023 |
4019 /* Max-PLR-UL, Float32, code 2853, section 5.3.139 */ | 4024 /* Note: 3GPP TS 29.212 table 5.3.0.1 row Max-PLR-UL (2853) */ |
4025 /* incorrectly lists type as Unsigned32 instead of Float32. */ | |
4026 /* 3GPP TS 29.212 clause 5.3.139 uses Float32. */ | |
4027 /* */ | |
4028 /* Fix: Max-PLR-UL (2853) type changed from Float32 to Unsigned32. */ | |
4029 /* Max-PLR-UL, Unsigned32, code 2853, section 5.3.139 */ | |
4020 { | 4030 { |
4021 struct dict_avp_data data = { | 4031 struct dict_avp_data data = { |
4022 2853, /* Code */ | 4032 2853, /* Code */ |
4023 10415, /* Vendor */ | 4033 10415, /* Vendor */ |
4024 "Max-PLR-UL", /* Name */ | 4034 "Max-PLR-UL", /* Name */ |
4025 AVP_FLAG_VENDOR |AVP_FLAG_MANDATORY, /* Fixed flags */ | 4035 AVP_FLAG_VENDOR |AVP_FLAG_MANDATORY, /* Fixed flags */ |
4026 AVP_FLAG_VENDOR, /* Fixed flag values */ | 4036 AVP_FLAG_VENDOR, /* Fixed flag values */ |
4027 AVP_TYPE_FLOAT32 /* base type of data */ | 4037 AVP_TYPE_UNSIGNED32 /* base type of data */ |
4028 }; | 4038 }; |
4029 CHECK_dict_new(DICT_AVP, &data, NULL, NULL); | 4039 CHECK_dict_new(DICT_AVP, &data, NULL, NULL); |
4030 }; | 4040 }; |
4031 | 4041 |
4032 /* Metering-Method, Enumerated, code 1007, section 5.3.8 */ | 4042 /* Metering-Method, Enumerated, code 1007, section 5.3.8 */ |