+ fragmentt *front_frag = &this_fragmentation->frag[index];
+
+ // before a MP_BEGIN, there must be a MP_END
+ if (front_frag->length && (front_frag->flags & MP_BEGIN))
+ end_or_hole_found = 1;
+
+ index = (index + (MAXFRAGNUM-1)) & MAXFRAGNUM_MASK;
+ this_frag = &this_fragmentation->frag[index];
+
+ // we are a hole or a MP_END
+ if (!this_frag->length || (this_frag->flags & MP_END))
+ end_or_hole_found = 1;
+
+ if (end_or_hole_found)
+ end_index = index;