|
|
@ -920,10 +920,8 @@ inpkg_check (unsigned char typ, short int id, _net_addr * addr)
|
|
|
|
/* find packet */
|
|
|
|
/* find packet */
|
|
|
|
for (i = 0, pos = -1; (i < PKG_IN_INDEX_NUM && pos == -1); i++)
|
|
|
|
for (i = 0, pos = -1; (i < PKG_IN_INDEX_NUM && pos == -1); i++)
|
|
|
|
if (inpkg_index[i].pl_nr == addr->pl_nr &&
|
|
|
|
if (inpkg_index[i].pl_nr == addr->pl_nr &&
|
|
|
|
inpkg_index[i].typ == typ && inpkg_index[i].id == id) {
|
|
|
|
inpkg_index[i].typ == typ && inpkg_index[i].id == id)
|
|
|
|
printf ("typ: %d, id: %d\n", typ, id);
|
|
|
|
|
|
|
|
pos = i;
|
|
|
|
pos = i;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (pos == -1) {
|
|
|
|
if (pos == -1) {
|
|
|
|
/* packet unknown ... add to index */
|
|
|
|
/* packet unknown ... add to index */
|
|
|
|
if (++inpkg_index_pos >= PKG_IN_INDEX_NUM)
|
|
|
|
if (++inpkg_index_pos >= PKG_IN_INDEX_NUM)
|
|
|
|