Packet Sniffer SDK DLL Edition

HNPacket :: Properties :: PktSetMark

 Previous Next

Set mark for a packet.

Syntax:

DWORD __stdcall PktSetMark(HANDLE hPkt, DWORD Mark);

Return values:

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

Parameters:

hPkt

[in] HNPacket object handle.

Mark

[in] User-defined 32-bit value.

Description:

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.

Use PktSetMark to set or change 32-bit value associated with particular packet.

See also:HNPacket, PktGetMark, BPF Instructions