/* Inserts a new node entry donated by NewEntry after the node entry donated by PostEntry of the doubly linked list. */
VOID EFIAPI NetListInsertBefore(IN OUT LIST_ENTRY *PostEntry, IN OUT LIST_ENTRY *NewEntry)
/* Inserts a new node entry donated by NewEntry after the node entry donated by PostEntry of the doubly linked list. */
VOID EFIAPI NetListInsertBefore(IN OUT LIST_ENTRY *PostEntry, IN OUT LIST_ENTRY *NewEntry)
{
  ASSERT (PostEntry != NULL && NewEntry != NULL);
  NewEntry->ForwardLink            = PostEntry;
  NewEntry->BackLink               = PostEntry->BackLink;
  PostEntry->BackLink->ForwardLink = NewEntry;
  PostEntry->BackLink              = NewEntry;
}