comparison extensions/dict_dcca_3gpp/add_avps.c @ 1531:ac39a776eb65

dict_dcca_3gpp: highlight changes since freeDiameter 1.4.0 Consistently prefix comments that describe changes since freeDiameter 1.4.0 with "Change-1.4.0" for easier grepping.
author Luke Mewburn <luke@mewburn.net>
date Sat, 18 Apr 2020 15:31:19 +1000
parents 2c92c6b73ac9
children 64d0a145b041
comparison
equal deleted inserted replaced
1530:2c92c6b73ac9 1531:ac39a776eb65
433 /* Note: 3GPP TS 29.061 Table 9a does not define */ 433 /* Note: 3GPP TS 29.061 Table 9a does not define */
434 /* External-Identifier (28) for Diameter; it is RADIUS only. */ 434 /* External-Identifier (28) for Diameter; it is RADIUS only. */
435 /* 3GPP TS 29.061 Table 9b refers to 3GPP TS 29.336 */ 435 /* 3GPP TS 29.061 Table 9b refers to 3GPP TS 29.336 */
436 /* for External-Identifier (3111). */ 436 /* for External-Identifier (3111). */
437 /* */ 437 /* */
438 /* Change since freeDiameter 1.4.0. */ 438 /* Change-1.4.0: Remove External-Identifier (28) OctetString. */
439 /* Fix: Remove External-Identifier (28) OctetString. */
440 439
441 /* TWAN-Identifier, OctetString, code 29, section 16.4.7 */ 440 /* TWAN-Identifier, OctetString, code 29, section 16.4.7 */
442 { 441 {
443 struct dict_avp_data data = { 442 struct dict_avp_data data = {
444 29, /* Code */ 443 29, /* Code */
4335 }; 4334 };
4336 4335
4337 /* Note: 3GPP TS 29.212 Table 5.3.0.1 row PDN-Connection-ID (1065) */ 4336 /* Note: 3GPP TS 29.212 Table 5.3.0.1 row PDN-Connection-ID (1065) */
4338 /* missing M, assume MUST NOT. */ 4337 /* missing M, assume MUST NOT. */
4339 /* */ 4338 /* */
4340 /* Fix: PDN-Connection-ID (1065) flag M MUST NOT. */ 4339 /* Change-1.4.0: PDN-Connection-ID (1065) flag M MUST NOT. */
4341 /* PDN-Connection-ID, OctetString, code 1065, section 5.3.58 */ 4340 /* PDN-Connection-ID, OctetString, code 1065, section 5.3.58 */
4342 { 4341 {
4343 struct dict_avp_data data = { 4342 struct dict_avp_data data = {
4344 1065, /* Code */ 4343 1065, /* Code */
4345 10415, /* Vendor */ 4344 10415, /* Vendor */
4501 }; 4500 };
4502 4501
4503 /* Note: 3GPP TS 29.212 Table 5.3.0.1 row PS-to-CS-Session-Continuity (1099) */ 4502 /* Note: 3GPP TS 29.212 Table 5.3.0.1 row PS-to-CS-Session-Continuity (1099) */
4504 /* missing M, assume MUST NOT. */ 4503 /* missing M, assume MUST NOT. */
4505 /* */ 4504 /* */
4506 /* Fix: PS-to-CS-Session-Continuity (1099) flag M MUST NOT. */ 4505 /* Change-1.4.0: PS-to-CS-Session-Continuity (1099) flag M MUST NOT. */
4507 /* PS-to-CS-Session-Continuity, Enumerated, code 1099, section 5.3.84 */ 4506 /* PS-to-CS-Session-Continuity, Enumerated, code 1099, section 5.3.84 */
4508 { 4507 {
4509 struct dict_avp_data data = { 4508 struct dict_avp_data data = {
4510 1099, /* Code */ 4509 1099, /* Code */
4511 10415, /* Vendor */ 4510 10415, /* Vendor */
5325 5324
5326 /*==================================================================*/ 5325 /*==================================================================*/
5327 /* 3GPP TS 29.212 Table 5b.3.0.1: Sd specific Diameter AVPs */ 5326 /* 3GPP TS 29.212 Table 5b.3.0.1: Sd specific Diameter AVPs */
5328 /*==================================================================*/ 5327 /*==================================================================*/
5329 5328
5329 /* Change-1.4.0: ADC-Rule-Base-Name (1095) flag M MUST. */
5330 /* ADC-Rule-Base-Name, UTF8String, code 1095, section 5b.3.4 */ 5330 /* ADC-Rule-Base-Name, UTF8String, code 1095, section 5b.3.4 */
5331 { 5331 {
5332 struct dict_avp_data data = { 5332 struct dict_avp_data data = {
5333 1095, /* Code */ 5333 1095, /* Code */
5334 10415, /* Vendor */ 5334 10415, /* Vendor */
5338 AVP_TYPE_OCTETSTRING /* base type of data */ 5338 AVP_TYPE_OCTETSTRING /* base type of data */
5339 }; 5339 };
5340 CHECK_dict_new(DICT_AVP, &data, UTF8String_type, NULL); 5340 CHECK_dict_new(DICT_AVP, &data, UTF8String_type, NULL);
5341 }; 5341 };
5342 5342
5343 /* Change-1.4.0: ADC-Rule-Definition (1094) flag M MUST. */
5343 /* ADC-Rule-Definition, Grouped, code 1094, section 5b.3.3 */ 5344 /* ADC-Rule-Definition, Grouped, code 1094, section 5b.3.3 */
5344 { 5345 {
5345 struct dict_avp_data data = { 5346 struct dict_avp_data data = {
5346 1094, /* Code */ 5347 1094, /* Code */
5347 10415, /* Vendor */ 5348 10415, /* Vendor */
5351 AVP_TYPE_GROUPED /* base type of data */ 5352 AVP_TYPE_GROUPED /* base type of data */
5352 }; 5353 };
5353 CHECK_dict_new(DICT_AVP, &data, NULL, NULL); 5354 CHECK_dict_new(DICT_AVP, &data, NULL, NULL);
5354 }; 5355 };
5355 5356
5357 /* Change-1.4.0: ADC-Rule-Install (1092) flag M MUST. */
5356 /* ADC-Rule-Install, Grouped, code 1092, section 5b.3.1 */ 5358 /* ADC-Rule-Install, Grouped, code 1092, section 5b.3.1 */
5357 { 5359 {
5358 struct dict_avp_data data = { 5360 struct dict_avp_data data = {
5359 1092, /* Code */ 5361 1092, /* Code */
5360 10415, /* Vendor */ 5362 10415, /* Vendor */
5364 AVP_TYPE_GROUPED /* base type of data */ 5366 AVP_TYPE_GROUPED /* base type of data */
5365 }; 5367 };
5366 CHECK_dict_new(DICT_AVP, &data, NULL, NULL); 5368 CHECK_dict_new(DICT_AVP, &data, NULL, NULL);
5367 }; 5369 };
5368 5370
5371 /* Change-1.4.0: ADC-Rule-Name (1096) flag M MUST. */
5369 /* ADC-Rule-Name, OctetString, code 1096, section 5b.3.5 */ 5372 /* ADC-Rule-Name, OctetString, code 1096, section 5b.3.5 */
5370 { 5373 {
5371 struct dict_avp_data data = { 5374 struct dict_avp_data data = {
5372 1096, /* Code */ 5375 1096, /* Code */
5373 10415, /* Vendor */ 5376 10415, /* Vendor */
5377 AVP_TYPE_OCTETSTRING /* base type of data */ 5380 AVP_TYPE_OCTETSTRING /* base type of data */
5378 }; 5381 };
5379 CHECK_dict_new(DICT_AVP, &data, NULL, NULL); 5382 CHECK_dict_new(DICT_AVP, &data, NULL, NULL);
5380 }; 5383 };
5381 5384
5385 /* Change-1.4.0: ADC-Rule-Remove (1093) flag M MUST. */
5382 /* ADC-Rule-Remove, Grouped, code 1093, section 5b.3.2 */ 5386 /* ADC-Rule-Remove, Grouped, code 1093, section 5b.3.2 */
5383 { 5387 {
5384 struct dict_avp_data data = { 5388 struct dict_avp_data data = {
5385 1093, /* Code */ 5389 1093, /* Code */
5386 10415, /* Vendor */ 5390 10415, /* Vendor */
5390 AVP_TYPE_GROUPED /* base type of data */ 5394 AVP_TYPE_GROUPED /* base type of data */
5391 }; 5395 };
5392 CHECK_dict_new(DICT_AVP, &data, NULL, NULL); 5396 CHECK_dict_new(DICT_AVP, &data, NULL, NULL);
5393 }; 5397 };
5394 5398
5399 /* Change-1.4.0: ADC-Rule-Report (1097) flag M MUST. */
5395 /* ADC-Rule-Report, Grouped, code 1097, section 5b.3.6 */ 5400 /* ADC-Rule-Report, Grouped, code 1097, section 5b.3.6 */
5396 { 5401 {
5397 struct dict_avp_data data = { 5402 struct dict_avp_data data = {
5398 1097, /* Code */ 5403 1097, /* Code */
5399 10415, /* Vendor */ 5404 10415, /* Vendor */
8925 8930
8926 /* Note: 3GPP TS 29.272 V12.5.0 (2014-06) Table 7.3.1/1 */ 8931 /* Note: 3GPP TS 29.272 V12.5.0 (2014-06) Table 7.3.1/1 */
8927 /* changed row SS-Status (1477) to be OctetString instead of Grouped. */ 8932 /* changed row SS-Status (1477) to be OctetString instead of Grouped. */
8928 /* Clause 7.3.88 already described SS-Status (1147) as OctetString. */ 8933 /* Clause 7.3.88 already described SS-Status (1147) as OctetString. */
8929 /* */ 8934 /* */
8930 /* Change since freeDiameter 1.4.0. */ 8935 /* Change-1.4.0: SS-Status (1477) type changed from Grouped to OctetString. */
8931 /* Fix: SS-Status (1477) type changed from Grouped to OctetString. */
8932 /* SS-Status, OctetString, code 1477, section 7.3.88 */ 8936 /* SS-Status, OctetString, code 1477, section 7.3.88 */
8933 { 8937 {
8934 struct dict_avp_data data = { 8938 struct dict_avp_data data = {
8935 1477, /* Code */ 8939 1477, /* Code */
8936 10415, /* Vendor */ 8940 10415, /* Vendor */
9082 }; 9086 };
9083 9087
9084 /* Note: 3GPP TS 29.272 V12.4.0 (2014-03) renamed */ 9088 /* Note: 3GPP TS 29.272 V12.4.0 (2014-03) renamed */
9085 /* Call-Barring-Infor-List (1488) to Call-Barring-Info (1488). */ 9089 /* Call-Barring-Infor-List (1488) to Call-Barring-Info (1488). */
9086 /* */ 9090 /* */
9087 /* Change since freeDiameter 1.4.0. */ 9091 /* Change-1.4.0: Call-Barring-Infor-List (1488) renamed to Call-Barring-Info (1488). */
9088 /* Fix: Call-Barring-Infor-List (1488) renamed to Call-Barring-Info (1488). */
9089 /* Call-Barring-Info, Grouped, code 1488, section 7.3.101 */ 9092 /* Call-Barring-Info, Grouped, code 1488, section 7.3.101 */
9090 { 9093 {
9091 struct dict_avp_data data = { 9094 struct dict_avp_data data = {
9092 1488, /* Code */ 9095 1488, /* Code */
9093 10415, /* Vendor */ 9096 10415, /* Vendor */
9255 }; 9258 };
9256 9259
9257 /* Note: 3GPP TS 29.272 Table 7.3.1/1 row MME-Location-Information (1600) */ 9260 /* Note: 3GPP TS 29.272 Table 7.3.1/1 row MME-Location-Information (1600) */
9258 /* incorrectly has a space instead of hyphen in the name. */ 9261 /* incorrectly has a space instead of hyphen in the name. */
9259 /* */ 9262 /* */
9260 /* Change since freeDiameter 1.4.0. */ 9263 /* Change-1.4.0: MME-LocationInformation (1600) renamed to MME-Location-Information(1600). */
9261 /* Fix: MME-LocationInformation (1600) renamed to MME-Location-Information(1600). */
9262 /* MME-Location-Information, Grouped, code 1600, section 7.3.115 */ 9264 /* MME-Location-Information, Grouped, code 1600, section 7.3.115 */
9263 { 9265 {
9264 struct dict_avp_data data = { 9266 struct dict_avp_data data = {
9265 1600, /* Code */ 9267 1600, /* Code */
9266 10415, /* Vendor */ 9268 10415, /* Vendor */
9945 }; 9947 };
9946 9948
9947 /* Note: 3GPP TS 29.272 V12.9.0 (2015-12) changed AVP code of */ 9949 /* Note: 3GPP TS 29.272 V12.9.0 (2015-12) changed AVP code of */
9948 /* Measurement-Period-LTE (1655) from 1656. */ 9950 /* Measurement-Period-LTE (1655) from 1656. */
9949 /* */ 9951 /* */
9950 /* Change since freeDiameter 1.4.0. */ 9952 /* Change-1.4.0: Measurement-Period-LTE (1656) code changed from 1656. */
9951 /* Fix: Measurement-Period-LTE (1656) code changed from 1656. */
9952 /* Measurement-Period-LTE, Enumerated, code 1655, section 7.3.166 */ 9953 /* Measurement-Period-LTE, Enumerated, code 1655, section 7.3.166 */
9953 { 9954 {
9954 struct dict_avp_data data = { 9955 struct dict_avp_data data = {
9955 1655, /* Code */ 9956 1655, /* Code */
9956 10415, /* Vendor */ 9957 10415, /* Vendor */
9966 }; 9967 };
9967 9968
9968 /* Note: 3GPP TS 29.272 V12.9.0 (2015-12) changed AVP code of */ 9969 /* Note: 3GPP TS 29.272 V12.9.0 (2015-12) changed AVP code of */
9969 /* Measurement-Period-UMTS (1656) from 1655. */ 9970 /* Measurement-Period-UMTS (1656) from 1655. */
9970 /* */ 9971 /* */
9971 /* Change since freeDiameter 1.4.0. */ 9972 /* Change-1.4.0: Measurement-Period-UMTS (1656) code changed from 1655. */
9972 /* Fix: Measurement-Period-UMTS (1656) code changed from 1655. */
9973 /* Measurement-Period-UMTS, Enumerated, code 1656, section 7.3.167 */ 9973 /* Measurement-Period-UMTS, Enumerated, code 1656, section 7.3.167 */
9974 { 9974 {
9975 struct dict_avp_data data = { 9975 struct dict_avp_data data = {
9976 1656, /* Code */ 9976 1656, /* Code */
9977 10415, /* Vendor */ 9977 10415, /* Vendor */
17678 }; 17678 };
17679 17679
17680 /* Note: 3GPP TS 32.299 V11.8.0 (2013-07) renamed */ 17680 /* Note: 3GPP TS 32.299 V11.8.0 (2013-07) renamed */
17681 /* LCS-Requestor-Id (1239) to LCS-Requestor-ID (1239). */ 17681 /* LCS-Requestor-Id (1239) to LCS-Requestor-ID (1239). */
17682 /* */ 17682 /* */
17683 /* Change since freeDiameter 1.4.0. */ 17683 /* Change-1.4.0: LCS-Requestor-Id (1239) renamed to LCS-Requestor-ID (1239). */
17684 /* Fix: LCS-Requestor-Id (1239) renamed to LCS-Requestor-ID (1239). */
17685 /* LCS-Requestor-ID, Grouped, code 1239 */ 17684 /* LCS-Requestor-ID, Grouped, code 1239 */
17686 { 17685 {
17687 struct dict_avp_data data = { 17686 struct dict_avp_data data = {
17688 1239, /* Code */ 17687 1239, /* Code */
17689 10415, /* Vendor */ 17688 10415, /* Vendor */
17696 }; 17695 };
17697 17696
17698 /* Note: 3GPP TS 32.299 V11.8.0 (2013-07) renamed */ 17697 /* Note: 3GPP TS 32.299 V11.8.0 (2013-07) renamed */
17699 /* LCS-Requestor-Id-String (1240) to LCS-Requestor-ID-String (1240). */ 17698 /* LCS-Requestor-Id-String (1240) to LCS-Requestor-ID-String (1240). */
17700 /* */ 17699 /* */
17701 /* Change since freeDiameter 1.4.0. */ 17700 /* Change-1.4.0: LCS-Requestor-Id-String (1240) renamed to LCS-Requestor-ID-String (1240). */
17702 /* Fix: LCS-Requestor-Id-String (1240) renamed to LCS-Requestor-ID-String (1240). */
17703 /* LCS-Requestor-ID-String, UTF8String, code 1240 */ 17701 /* LCS-Requestor-ID-String, UTF8String, code 1240 */
17704 { 17702 {
17705 struct dict_avp_data data = { 17703 struct dict_avp_data data = {
17706 1240, /* Code */ 17704 1240, /* Code */
17707 10415, /* Vendor */ 17705 10415, /* Vendor */
17846 }; 17844 };
17847 17845
17848 /* Note: 3GPP TS 32.299 V11.8.0 (2013-07) Table 7.2 changed */ 17846 /* Note: 3GPP TS 32.299 V11.8.0 (2013-07) Table 7.2 changed */
17849 /* row MBMS-GW-Address (2307) to have a hyphen instead of space. */ 17847 /* row MBMS-GW-Address (2307) to have a hyphen instead of space. */
17850 /* */ 17848 /* */
17851 /* Change since freeDiameter 1.4.0. */ 17849 /* Change-1.4.0: MBMSGW-Address (2307) renamed to MBMS-GW-Address (2307). */
17852 /* Fix: MBMSGW-Address (2307) renamed to MBMS-GW-Address (2307). */
17853 /* MBMS-GW-Address, Address, code 2307 */ 17850 /* MBMS-GW-Address, Address, code 2307 */
17854 { 17851 {
17855 struct dict_avp_data data = { 17852 struct dict_avp_data data = {
17856 2307, /* Code */ 17853 2307, /* Code */
17857 10415, /* Vendor */ 17854 10415, /* Vendor */
18895 }; 18892 };
18896 18893
18897 /* Note: 3GPP TS 32.299 V13.1.0 (2015-06) renamed */ 18894 /* Note: 3GPP TS 32.299 V13.1.0 (2015-06) renamed */
18898 /* PoC-User-Role-info-Units (1254) to PoC-User-Role-Info-Units (1254). */ 18895 /* PoC-User-Role-info-Units (1254) to PoC-User-Role-Info-Units (1254). */
18899 /* */ 18896 /* */
18900 /* Change since freeDiameter 1.4.0. */ 18897 /* Change-1.4.0: PoC-User-Role-info-Units (1254) renamed to PoC-User-Role-Info-Units (1254). */
18901 /* Fix: PoC-User-Role-info-Units (1254) renamed to PoC-User-Role-Info-Units (1254). */
18902 /* PoC-User-Role-Info-Units, Enumerated, code 1254 */ 18898 /* PoC-User-Role-Info-Units, Enumerated, code 1254 */
18903 { 18899 {
18904 struct dict_avp_data data = { 18900 struct dict_avp_data data = {
18905 1254, /* Code */ 18901 1254, /* Code */
18906 10415, /* Vendor */ 18902 10415, /* Vendor */
20549 /* Note: 3GPP TS 32.299 V11.10.0 (2013-12) CR 0566 renamed */ 20545 /* Note: 3GPP TS 32.299 V11.10.0 (2013-12) CR 0566 renamed */
20550 /* Status (2702) to Status-Code (2702). */ 20546 /* Status (2702) to Status-Code (2702). */
20551 /* 3GPP TS 32.299 V11.14.0 (2014-12) CR 0617 renamed */ 20547 /* 3GPP TS 32.299 V11.14.0 (2014-12) CR 0617 renamed */
20552 /* Status-Code (2702) to Status-AS-Code (2702). */ 20548 /* Status-Code (2702) to Status-AS-Code (2702). */
20553 /* */ 20549 /* */
20554 /* Change since freeDiameter 1.4.0. */ 20550 /* Change-1.4.0: Status (2702) renamed to Status-AS-Code (2702). */
20555 /* Fix: Status (2702) renamed to Status-AS-Code (2702). */
20556 /* Status-AS-Code, Enumerated, code 2702 */ 20551 /* Status-AS-Code, Enumerated, code 2702 */
20557 { 20552 {
20558 struct dict_avp_data data = { 20553 struct dict_avp_data data = {
20559 2702, /* Code */ 20554 2702, /* Code */
20560 10415, /* Vendor */ 20555 10415, /* Vendor */
21411 AVP_TYPE_OCTETSTRING /* base type of data */ 21406 AVP_TYPE_OCTETSTRING /* base type of data */
21412 }; 21407 };
21413 CHECK_dict_new(DICT_AVP, &data, UTF8String_type, NULL); 21408 CHECK_dict_new(DICT_AVP, &data, UTF8String_type, NULL);
21414 }; 21409 };
21415 21410
21416 /* Change since freeDiameter 1.4.0. */ 21411 /* Change-1.4.0: Application-Service-Type (2102) type changed from UTF8String to Enumerated. */
21417 /* Fix: Application-Service-Type (2102) type changed from UTF8String to Enumerated. */
21418 /* Application-Service-Type, Enumerated, code 2102, section 8.4 */ 21412 /* Application-Service-Type, Enumerated, code 2102, section 8.4 */
21419 { 21413 {
21420 struct dict_avp_data data = { 21414 struct dict_avp_data data = {
21421 2102, /* Code */ 21415 2102, /* Code */
21422 10415, /* Vendor */ 21416 10415, /* Vendor */
21429 struct dict_type_data tdata = { AVP_TYPE_INTEGER32, "Enumerated(3GPP/Application-Service-Type)", NULL, NULL, NULL }; 21423 struct dict_type_data tdata = { AVP_TYPE_INTEGER32, "Enumerated(3GPP/Application-Service-Type)", NULL, NULL, NULL };
21430 CHECK_dict_new(DICT_TYPE, &tdata, NULL, &type); 21424 CHECK_dict_new(DICT_TYPE, &tdata, NULL, &type);
21431 CHECK_dict_new(DICT_AVP, &data, type, NULL); 21425 CHECK_dict_new(DICT_AVP, &data, type, NULL);
21432 }; 21426 };
21433 21427
21434 /* Change since freeDiameter 1.4.0. */ 21428 /* Change-1.4.0: Application–Session–Id (2103) type changed from UTF8String to Unsigned32. */
21435 /* Fix: Application–Session–Id (2103) type changed from UTF8String to Unsigned32. */
21436 /* Application-Session-Id, Unsigned32, code 2103, section 8.4 */ 21429 /* Application-Session-Id, Unsigned32, code 2103, section 8.4 */
21437 { 21430 {
21438 struct dict_avp_data data = { 21431 struct dict_avp_data data = {
21439 2103, /* Code */ 21432 2103, /* Code */
21440 10415, /* Vendor */ 21433 10415, /* Vendor */
21583 /* */ 21576 /* */
21584 /* From 3GPP2 X.S0057-0_v2.0_091215.pdf */ 21577 /* From 3GPP2 X.S0057-0_v2.0_091215.pdf */
21585 /*==================================================================*/ 21578 /*==================================================================*/
21586 21579
21587 /* */ 21580 /* */
21588 /* Change since freeDiameter 1.4.0. */ 21581 /* Change-1.4.0: 3GPP2-BSID (9010) type changed from OctetString to UTF8String. */
21589 /* Fix: 3GPP2-BSID (9010) type changed from OctetString to UTF8String. */ 21582 /* Change-1.4.0: 3GPP2-BSID (9010) flag M MUST. */
21590 /* 3GPP2-BSID, UTF8String, code 9010, section 5.6.2.1.1 */ 21583 /* 3GPP2-BSID, UTF8String, code 9010, section 5.6.2.1.1 */
21591 { 21584 {
21592 struct dict_avp_data data = { 21585 struct dict_avp_data data = {
21593 9010, /* Code */ 21586 9010, /* Code */
21594 5535, /* Vendor */ 21587 5535, /* Vendor */
"Welcome to our mercurial repository"