/* Convert value between PXE receive filter and USB ETH packet filter. */
VOID ConvertFilter(IN UINT16 Value, OUT UINT16 *CdcFilter)
/* Convert value between PXE receive filter and USB ETH packet filter. */
VOID ConvertFilter(IN UINT16 Value, OUT UINT16 *CdcFilter)
{
  UINT32  Index;
  UINT32  Count;
  Count = sizeof (gTable)/sizeof (gTable[0]);
  for (Index = 0; (gTable[Index].Src != 0) && (Index < Count); Index++) {
    if (gTable[Index].Src & Value) {
      *CdcFilter |= gTable[Index].Dst;
    }
  }
}