Packet Sniffer SDK DLL Edition

HNLBAdapter :: Properties :: LbAdpGetEthEmulation

 Previous Next

Return Ethernet emulation mode using flag for HNLBAdapter object.

Syntax:

BOOL __stdcall LbAdpGetEthEmulation(HANDLE hLbAdp);

Parameters:

hLbAdp

[in] HNLBAdapter object handle.

Return values:

If the function succeeds the return value will be the Ethernet emulation mode using flag value.

Description:

Use LbAdpSetEthEmulation to get value of the HNLBAdapter.EthEmulation property. If this property is set to TRUE, then HNLBAdapter after successful opening of Loopback adapter will encapsulate captured TCP/UDP traffic into Ethernet frames with correctly set TCP/UDP headers.

The work of the HNLBAdapter object in the Ethernet emulation mode is identical to work of the HNAdapter object, i.e. the following properties and events become available:

  • HNLBAdapter.UserFilter[Get/Set]
  • HNLBAdapter.UseUserFilterActive[Get/Set]
  • HNLBAdapter.UseFastUserFilter[Get/Set]
  • HNLBAdapter.MaxThreadCount[Get]
  • HNLBAdapter.ReceiveQueue[Get/Set]
  • HNLBAdapter.ThreadCount[Get/Set]
  • HNLBAdapter.OnPacketReceive[Set]
  • HNLBAdapter.CalcCheckSum[Get/Set]

In other words, in the Ethernet emulation mode you can use all functions of PSSDK which it provides for network adapter traffic processing.

See also:HNLBAdapter, LbAdpSetEthEmulation, LbAdpSetOnPacketRecv, LbAdpGetUserFilter, LbAdpSetUserFilter, LbAdpGetUserFilterActive, LbAdpSetUserFilterActive, LbAdpGetUseFastUserFilter, LbAdpSetUseFastUserFilter, LbAdpGetMaxThreadCount, LbAdpGetReceiveQueue, LbAdpSetReceiveQueue, LbAdpGetThreadCount, LbAdpSetThreadCount, LbAdpGetCalcCheckSum, LbAdpSetCalcCheckSum