The first two patches of this series fix segfaults when calling tc in a specific way. Basically they are caused by some libxtables quirks the xt action did not cover.
The remaining patches are more or less cosmetic code cleanups. Phil Sutter (9): tc: m_xt: Prevent segfault with standard targets tc: m_xt: Fix segfault when adding multiple actions at once tc: m_xt: Fix indenting tc: m_xt: Get rid of one indentation level in parse_ipt() tc: m_xt: Drop unused variable fw in parse_ipt() tc: m_xt: Get rid of rargc in parse_ipt() tc: m_xt: Get rid of iargc variable in parse_ipt() tc: m_xt: Simplify argc adjusting in parse_ipt() tc: m_xt: Introduce get_xtables_target_opts() tc/m_xt.c | 188 ++++++++++++++++++++++++++++++-------------------------------- 1 file changed, 91 insertions(+), 97 deletions(-) -- 2.8.2