Skip to contentSkip to conversation

IMQ patch

LARTC Jay Wineinger 2 participants 4 messages Mar 31, 2003

lore
Share & tools
lore
#0 lore raw

Hey guys,
I want to use IMQ with netfilter support. I know that I need to patch
the kernel (2.4.20) to get this to work properly. Ive tried a number of things so far and I cant seem to get to the the IMQ target support for netfilter to appear in the make menuconfig. Anyways, could someone post directions and links to the patches I need to apply to get this?

Thanks,
Jay

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#1 lore raw
Quoted 7 lines · Jay Wineinger

Hey guys,
I want to use IMQ with netfilter support. I know that I need to patch
the kernel (2.4.20) to get this to work properly. Ive tried a number of things so far and I cant seem to get to the the IMQ target support for netfilter to appear in the make menuconfig. Anyways, could someone post directions and links to the patches I need to apply to get this?

http://trash.net/~kaber/imq/

And you have to do

cd /usr/src/linux
patch -p1 < <imq-patch>

It's possible that you get some warnings, but last time I tried it, it worked for me.

Stef

Signature · 8 lines
[email protected]
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.oftc.net

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
#2 lore raw
In reply to Jay Wineinger

Ok, I untarred a new copy of the 2.4.20 source and then i applied the
http://trash.net/~kaber/imq/imq-2.4.18.diff-10 patch against it with patch -p1 <../imq-2.4.18.diff-10 which produced this output:

patching file Documentation/Configure.help
Hunk #1 succeeded at 8758 (offset 402 lines).
patching file drivers/net/Config.in
Hunk #1 succeeded at 7 (offset -1 lines).
patching file drivers/net/Makefile
Hunk #1 succeeded at 158 (offset 13 lines).
patching file drivers/net/imq.c
patching file include/linux/imq.h
patching file include/linux/skbuff.h
patching file net/core/skbuff.c
patching file net/sched/sch_generic.c

Then I did make menuconfig and I have Network Device Support -> IMQ support, but I have no IMQ references under Networking Options -> Netfilter Configuration

I then applied the http://trash.net/~kaber/imq/iptables-1.2.6a-imq.diff-3
patch thinking that might have something to do with the IMQ target issues. The patch applies with this output:

patching file extensions/.IMQ-test
patching file extensions/.IMQ-test6
patching file extensions/libip6t_IMQ.c
patching file extensions/libipt_IMQ.c
patching file patch-o-matic/extra/IMQ.patch
patching file patch-o-matic/extra/IMQ.patch.config.in patching file patch-o-matic/extra/IMQ.patch.configure.help patching file patch-o-matic/extra/IMQ.patch.help patching file patch-o-matic/extra/IMQ.patch.ipv6 patching file patch-o-matic/extra/IMQ.patch.ipv6.config.in patching file patch-o-matic/extra/IMQ.patch.ipv6.configure.help patching file patch-o-matic/extra/IMQ.patch.ipv6.help patching file patch-o-matic/extra/IMQ.patch.ipv6.makefile patching file patch-o-matic/extra/IMQ.patch.makefile

For the record, I tried to follow the FAQ at
http://trash.net/~kaber/imq/faq.html, and I cant seem to get the "make patch-o-matic" to work. Im following the directions there in order, buit when I try that, it says "nothing to do for patch-o-matic."

Id appreciate any help people can provide,
Jay

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#3 lore raw
In reply to Jay Wineinger
Quoted 1 line

Do you have the iptables source installed in /usr/src/iptables-1.2.6a

&&

Quoted 3 lines

Iptables is in two parts. Kernel space and userspace. The imq-2.4.18.diff-10 patch is for kernel space only. This one is for userspace.

ahh, that clears it up. Will try again in a couple hours. thanks guys

Jay

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/