libapf/apf_run: Integrate libapf into apf_run
Integrate libapf into apf_run without changing any semantics or
behaviour in apf_run (at this time).
Targets apfv2, apfv4, apfv6, apfv61, and libapf are now compiled
with -DAPF_TRACE_HOOK=apf_trace_hook and have added new file
apf_trace_hook_weak.c which has an empty implementation as a weak
symbol.
Clients of those targets need not change to continue to use the
same behaviour.
Target apf_run does define symbol apf_trace_hook (required for the
testing performed by apf_run_test.sh) which replaces any weak
symbol.
Program apf_run now uses libapf function apf_run_generic for both
the v4 and v6 case. Arg filter_age has been modified as necessary.
Minimal changes have been made, just sufficient to achieve the
integration while preserving prior behaviour. Version arg handling
has not changed, and an issue with v6 filter age being confused
with filter age 16384ths has not been fixed in this commit (but
will be in an upcoming commit).
Bug: 419135813
Test: m apf_run && atest apf_run_test
Change-Id: If1f5d763d091225362500a47f087c81e289a841a
3 files changed