The filter_layer function returns the layer in a filter stack that corresponds to the specified filter.
FilterLayer *filter_layer(SYS_NETFD sd, const Filter *filter);
The topmost FilterLayer * associated with the specified filter, or NULL if the specified filter is not part of the specified filter stack.
SYS_NETFD sd is the filter stack to inspect.
const Filter *filter is the filter of interest.