/**
* At which offset should we be able to find
- * this on-demand encoded block?
+ * this on-demand encoded block? (in NBO)
*/
uint64_t offset GNUNET_PACKED;
#include "fs.h"
#include "fs_tree.h"
-#define DEBUG_DOWNLOAD GNUNET_NO
+#define DEBUG_DOWNLOAD GNUNET_YES
/**
* We're storing the IBLOCKS after the
(unsigned long long) offset,
sizeof (struct OnDemandBlock));
#endif
- odb.offset = offset;
+ odb.offset = GNUNET_htonll (offset);
odb.file_id = p->data.file.file_id;
GNUNET_DATASTORE_put (sc->dsh,
sc->rid,
else /* on-demand encoded DBLOCK */
{
size = sizeof(struct OnDemandBlock);
- odb.offset = offset;
+ odb.offset = GNUNET_htonll (offset);
odb.file_id = uc->file_id;
data = &odb;
}
break;
case GNUNET_FS_STATUS_SEARCH_UPDATE:
break;
+ case GNUNET_FS_STATUS_SEARCH_RESULT_STOPPED:
+ /* ignore */
+ break;
case GNUNET_FS_STATUS_SEARCH_ERROR:
fprintf (stderr,
_("Error searching: %s.\n"),