Mercurial > hg > waaad
changeset 408:ea807203654d
Added a generic value for creating unspecified AVPs
author | Sebastien Decugis <sdecugis@nict.go.jp> |
---|---|
date | Thu, 11 Jun 2009 16:58:54 +0900 |
parents | 9ea089572588 |
children | e90a9d081c98 |
files | waaad/dict-base.c |
diffstat | 1 files changed, 19 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/waaad/dict-base.c Thu Jun 11 12:40:11 2009 +0900 +++ b/waaad/dict-base.c Thu Jun 11 16:58:54 2009 +0900 @@ -3448,5 +3448,24 @@ } } + /* Waaad specific */ + { + /* waaad_generic_os */ + { + /* + This pseudo-AVP can be used to forge other AVPs without defining a new dictionary object for it. + */ + dict_avp_data_t data = { + 0, /* Code */ + 0, /* Vendor */ + "waaad_generic_os", /* Name */ + 0, /* Fixed flags */ + 0, /* Fixed flag values */ + AVP_TYPE_OCTETSTRING /* base type of data */ + }; + CHECK_dict_new( DICT_AVP, &data , NULL, NULL); + } + } + return 0; }