Lines Matching refs:dec_entry
42 static struct dec_entry *protocols_table;
46 struct dec_entry { struct
60 static struct dec_entry* find_entry(u_int8 level, u_int32 type); argument
341 struct dec_entry *e; in add_decoder()
349 SAFE_CALLOC(protocols_table, protocols_num = 19 + 52, sizeof(struct dec_entry)); in add_decoder()
367 SAFE_REALLOC(protocols_table, ++protocols_num * sizeof(struct dec_entry)); in add_decoder()
390 qsort(protocols_table, protocols_num, sizeof(struct dec_entry), cmp_decoders); in sort_decoders()
396 const struct dec_entry *da = va, *db = vb; in cmp_decoders()
410 static struct dec_entry* find_entry(u_int8 level, u_int32 type) in find_entry()
412 struct dec_entry *e, fake; in find_entry()
422 e = bsearch(&fake, protocols_table, protocols_num, sizeof(struct dec_entry), cmp_decoders); in find_entry()
436 struct dec_entry *e; in get_decoder()
451 struct dec_entry *e; in del_decoder()
458 memcpy(e, &protocols_table[protocols_num-1], sizeof(struct dec_entry)); in del_decoder()
461 SAFE_REALLOC(protocols_table, --protocols_num*sizeof(struct dec_entry)); in del_decoder()