Changeset 602:0b5d21c87855 in freeDiameter
- Timestamp:
- Nov 25, 2010, 4:27:54 PM (13 years ago)
- Branch:
- default
- Phase:
- public
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
include/freeDiameter/libfreeDiameter.h
r594 r602 1210 1210 AVP_BY_NAME, /* "what" points to a string, vendor is always 0 */ 1211 1211 AVP_BY_CODE_AND_VENDOR, /* "what" points to a struct dict_avp_request (see bellow), where avp_vendor and avp_code are set */ 1212 AVP_BY_NAME_AND_VENDOR /* "what" points to a struct dict_avp_request (see bellow), where avp_vendor and avp_name are set */ 1212 AVP_BY_NAME_AND_VENDOR, /* "what" points to a struct dict_avp_request (see bellow), where avp_vendor and avp_name are set */ 1213 AVP_BY_NAME_ALL_VENDORS /* "what" points to a string. Might be quite slow... */ 1213 1214 }; 1214 1215 -
libfreeDiameter/dictionary.c
r446 r602 592 592 struct fd_list * __li; \ 593 593 ret = 0; \ 594 for (__li = (sentinel) ; __li->next!= (sentinel); __li = __li->next) { \595 __cmp = strcmp(__str, _O(__li-> next->o)->data. datafield );\594 for (__li = (sentinel)->next; __li != (sentinel); __li = __li->next) { \ 595 __cmp = strcmp(__str, _O(__li->o)->data. datafield ); \ 596 596 if (__cmp == 0) { \ 597 597 if (result) \ 598 *result = _O(__li-> next->o);\598 *result = _O(__li->o); \ 599 599 goto end; \ 600 600 } \ … … 974 974 break; 975 975 976 case AVP_BY_NAME_ALL_VENDORS: 977 { 978 struct fd_list * li; 979 980 /* First, search for vendor 0 */ 981 SEARCH_string( what, &dict->dict_vendors.list[2], avp.avp_name, 1); 982 983 /* If not found, loop for all vendors, until found */ 984 for (li = dict->dict_vendors.list[0].next; li != &dict->dict_vendors.list[0]; li = li->next) { 985 SEARCH_string( what, &_O(li->o)->list[2], avp.avp_name, 1); 986 } 987 } 988 break; 989 976 990 default: 977 991 /* Invalid criteria */
Note: See TracChangeset
for help on using the changeset viewer.