Skip to contentSkip to conversation

Problem using iptables MARK from tc.

DISCUSSION Andreas Henriksson 2 participants 2 messages Jan 6, 2009 – Jan 12, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hello Patrick and co.

I was hoping you might have some time to help out with a problem in tc related to iptables modules. A bit of historical knowledge about libipt_MARK.c is probably useful.

The full bug-report is available at:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510924

In iproute2's tc/m_ipt.c there's a function called get_target_name with some logic to look up a symbol with the same name as the so-file. (ie. "mark" for libipt_MARK.so or libxt_MARK.so).
There seems to have been a structure with that name in the past, but nowadays there are several ones which are jacked in with a registration hook.

Does this sound about right? Do you have any suggestions on how the tc modules functionality could be fixed up to find what it needs properly? The structures doesn't even seem to be exported in the ABI anymore...

Signature · 2 lines
Regards,
Andreas Henriksson
#1 lore raw
Quoted 16 lines · Andreas Henriksson

Hello Patrick and co.

I was hoping you might have some time to help out with a problem in tc related to iptables modules. A bit of historical knowledge about libipt_MARK.c is probably useful.

The full bug-report is available at:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510924

In iproute2's tc/m_ipt.c there's a function called get_target_name with some logic to look up a symbol with the same name as the so-file. (ie. "mark" for libipt_MARK.so or libxt_MARK.so).
There seems to have been a structure with that name in the past, but nowadays there are several ones which are jacked in with a registration hook.

Quoted 3 lines

Does this sound about right? Do you have any suggestions on how the tc modules functionality could be fixed up to find what it needs properly? The structures doesn't even seem to be exported in the ABI anymore...

We've added a shared library to iptables so m_ipt doesn't have to reimplement things, which is pretty much guaranteed to break occasionally. It doesn't contain all the functionality thats needed yet, but it should be fairly easy to add. Most likely you just need to move the code around.