Packet Sniffer SDK DLL Edition

HNPacket :: Properties :: PktGetMark

 Previous Next

Return value of the packet mark, which was set for this packet by BPF filter.

Syntax:

DWORD __stdcall PktGetMark(HANDLE hPkt);

Parameters:

hPkt

[in] HNPacket object handle.

Return values:

If the function succeeds the return value will be the value of this packet mark set by BPF filter while packets filtering by internal PSSDK driver.

Description:

Use PktGetMark to get 32-bit value associated with a packet, which was set by BPF filter while packets filtering by internal PSSDK driver.

Since PSSDK 4.0 the BPF instructions set was extended. Now you can use BPF_MARK instruction to mark a packet with desired value, which may be used in further traffic processing.

See also:HNPacket, PktSetMark, BPF Instructions