]> git.proxmox.com Git - mirror_iproute2.git/commit
tc: make symbols loaded from tc action modules global.
authorAndreas Henriksson <andreas@fatal.se>
Mon, 2 Aug 2010 07:30:33 +0000 (09:30 +0200)
committerStephen Hemminger <stephen.hemminger@vyatta.com>
Mon, 2 Aug 2010 16:54:59 +0000 (09:54 -0700)
commit02833d1b381f468c8744f786061b36b7a4c2572a
treea0a5e0c9fda4ba8774a6bb53bd83de578cb53147
parentfbc0f876fa011ef5f848911bd41b3033bf418bab
tc: make symbols loaded from tc action modules global.

Fixes problems with xtables based MARK target ("ipt" module).
When tc loads the "ipt" (xt) module it kept the symbols local,
this made loading of libxtables not find the required struct.

currently ipt/xt is the only tc action module.
iproute2 never seem to do dlclose.
hopefully the modules doesn't export more symbols then needed.

In this situation hopefully the RTLD_GLOBAL flag won't hurt us.

I've been using this patch in the Debian package of iproute for
the last 3 weeks and noone has complained.
( This fixes http://bugs.debian.org/584898 )

Signed-off-by: Andreas Henriksson <andreas@fatal.se>
tc/m_action.c