fixed oem/iana data type to allow 24 bits definition

This commit is contained in:
Francois Isabelle 2010-01-20 14:54:52 +00:00
parent 0dfd0d494a
commit cf3dd06818
2 changed files with 2 additions and 2 deletions

View File

@ -57,7 +57,7 @@ struct valstr {
const char * str;
};
struct oemvalstr {
uint16_t oem;
uint32_t oem;
uint16_t val;
const char * str;
};

View File

@ -130,7 +130,7 @@ const char * oemval2str(uint32_t oem, uint16_t val,
static char un_str[32];
int i;
for (i = 0; vs[i].oem != 0x00 && vs[i].str != NULL; i++) {
for (i = 0; vs[i].oem != 0xffffff && vs[i].str != NULL; i++) {
/* FIXME: for now on we assume PICMG capability on all IANAs */
if
(