Match packets by id.