-int
-fragment_result (void *cls,
- struct GNUNET_MULTICAST_MessageHeader *msg,
- enum GNUNET_PSYCSTORE_MessageFlags flags)
-{
- struct FragmentClosure *fcls = cls;
- struct GNUNET_MULTICAST_MessageHeader *msg0 = fcls->msg[fcls->n];
- uint64_t flags0 = fcls->flags[fcls->n++];
-
- if (flags == flags0 && msg->header.size == msg0->header.size
- && 0 == memcmp (msg, msg0, ntohs (msg->header.size)))
- {
- GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, " fragment %llu matches\n",
- GNUNET_ntohll (msg->fragment_id));
- return GNUNET_YES;
- }
- else
- {
- GNUNET_log (GNUNET_ERROR_TYPE_ERROR, " fragment %llu differs\n",
- GNUNET_ntohll (msg->fragment_id));
- ASSERRT (0);
- return GNUNET_SYSERR;
- }
-}
-
-