TSHttpTxnServerPacketMarkSet
Synopsis
#include <ts/ts.h>
-
TSReturnCode TSHttpTxnServerPacketMarkSet(TSHttpTxn txnp, int mark)
Description
Change the packet firewall mark for the server side (origin) connection. The entire firewall mark is replaced with mark, which is interpreted as a 32-bit unsigned bit pattern.
Always returns TS_SUCCESS, including when no server connection has been
established yet.
Note
The firewall mark is only honored on platforms whose OS supports it,
specifically Linux via SO_MARK. On platforms without SO_MARK support
the call still returns TS_SUCCESS, but setting the mark has no effect
at the OS layer (it is a safe no-op).
Note
If a live server connection exists, the mark is applied to it immediately; the mark is also recorded on the transaction so that any subsequent server connection for this transaction uses it.