Packet Sniffer SDK DLL Edition

HNLBAdapter :: Properties :: LbAdpSetCalcCheckSum

 Previous Next

Set IP/TCP/UDP checksums caculation flag for Ethernet emulation mode.

Syntax:

BOOL __stdcall LbAdpSetCalcCheckSum(HANDLE hLbAdp, BOOL bCalcCheckSum);

Parameters:

hLbAdp

[in] HNLBAdapter object handle.

bCalcCheckSum

[in] New value of the IP/TCP/UDP checksums caculation flag for Ethernet emulation mode.

Return values:

If the function succeeds the return value will be the bCalcCheckSum parameter value.

Description:

Use LbAdpSetCalcCheckSum to change value of the HNLBAdapter.CalcCheckSum property. If the HNLBAdapter.CalcCheckSum is set to TRUE, then after successful opening of Loopback adapter in the Ethernet emulation mode HNLBAdapter object calculates checksums for IP/TCP/UDP packets. Default value is FALSE.

CalcCheckSum may be used in the Ethernet emulation mode only (see HNLBAdapter.EthEmulation[Get/Set]).
See also:HNLBAdapter, LbAdpGetCalcCheckSum, LbAdpGetEthEmulation, LbAdpSetEthEmulation