TSHttpTxnClientPacketMarkSet

Synopsis

#include <ts/ts.h>
TSReturnCode TSHttpTxnClientPacketMarkSet(TSHttpTxn txnp, int mark)

Description

Change the packet firewall mark for the client side connection. The entire firewall mark is replaced with mark, which is interpreted as a 32-bit unsigned bit pattern.

Returns TS_SUCCESS when the client connection was modified, and TS_ERROR when there is no client connection to modify.

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 when a client connection is present, but setting the mark has no effect at the OS layer (it is a safe no-op).

Note

The change takes effect immediately on the live client connection.

See Also