/* Get the first valid block number on the range list. */
INTN Mtftp6GetNextBlockNum(IN LIST_ENTRY *Head)
/* Get the first valid block number on the range list. */
INTN Mtftp6GetNextBlockNum(IN LIST_ENTRY *Head)
{
  MTFTP6_BLOCK_RANGE  *Range;
  if (IsListEmpty (Head)) {
    return -1;
  }
  Range = NET_LIST_HEAD (Head, MTFTP6_BLOCK_RANGE, Link);
  return Range->Start;
}