TSRemapNextHopStrategyGet

Synopsis

#include <ts/ts.h>
TSStrategy TSRemapNextHopStrategyGet()

Description

Gets the strategy pointer of the remap rule currently being loaded. This may be nullptr, indicating that parent.config is in use or that the call was made outside of remap rule initialization.

This function may ONLY be called during TSRemapNewInstance. A call made outside of remap rule initialization is logged to diags.log at most once per proxy.config.log.throttling_interval_msec.

Note

This strategy pointer must not be freed and the contents must not be changed. Strategy pointers held by plugins become invalid when ATS configs are reloaded and must be re-obtained during TSRemapNewInstance()

See Also

TSRemapNextHopStrategySet()