/* Find the next packet and parse it; called from wtap_read().  */
static gboolean iseries_read(wtap *wth, int *err, gchar **err_info, gint64 *data_offset)
/* Find the next packet and parse it; called from wtap_read().  */
static gboolean iseries_read(wtap *wth, int *err, gchar **err_info, gint64 *data_offset)
{
  gint64 offset;
  offset = iseries_seek_next_packet (wth, err, err_info);
  if (offset < 0)
    return FALSE;
  *data_offset     = offset;
  return iseries_parse_packet (wth, wth->fh, &wth->phdr, wth->frame_buffer,
                               err, err_info);
}