/* Get the first buffer block in the specific socket buffer. */
NET_BUF* SockBufFirst(IN SOCK_BUFFER *Sockbuf)
/* Get the first buffer block in the specific socket buffer. */
NET_BUF* SockBufFirst(IN SOCK_BUFFER *Sockbuf)
{
  LIST_ENTRY  *NetbufList;
  NetbufList = &(Sockbuf->DataQueue->BufList);
  if (IsListEmpty (NetbufList)) {
    return NULL;
  }
  return NET_LIST_HEAD (NetbufList, NET_BUF, List);
}