Skip to contentSkip to conversation

where is ipt_layer.h

DISCUSSION Matthew Strait 2 participants 2 messages Feb 2, 2004 – Feb 3, 2004 3 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 012101c3e992$0a5d75a0$c2bf09ca@huecal

A message that is not in the archive (sent off-list or not yet received): Pine.LNX.4.60.0402020809060.3769@dsl093-017-216.msp1.dsl.speakeasy.net

A message that is not in the archive (sent off-list or not yet received): 014d01c3e998$49b056e0$c2bf09ca@huecal

#3 lore raw
Quoted 4 lines

i am using the following things

iptables-1.2.9-layer7-0.4.1.patch
layer7-kernel2.4patch-qos-0.4.1b

You are using the QoS version of the kernel patch and the Netfilter (iptables) version of the userspace patch. You need to either use QoS with iproute2 or Netfilter with iptables.

-matthew

#4 lore raw

Hi Mathew

I was not understand

is that what you saying

I need to use any one of the Patch

iptables-1.2.9-layer7-0.4.1.patch

This above patch for Marking the Packets with Iptables right ?

layer7-kernel2.4patch-qos-0.4.1b

this Patch is for TC to work with layer 7 aplication

so what did iam doing wrong

ok take example, i re did my setup like below

extract new kernel
extract iptables source
extract pom
i have just patched only iptables with layer7 patch (iptables-1.2.9-layer7-0.4.1.patch)
then i patched kernel with POM

make mrproper
make menuconfig
------ here iam not able to see that optiond what mentioned in the docs ("Layer 7 match support" and "Child Level match support". ) make dep
make bzImage
make modules
make modules_install
make install

rebooted with new kernel

iam not able to mark pacjets using iptables
iam getting the following error

iptables -t mangle -A POSTROUTING -m layer7 --l7proto http -j MARK --set-mark 1
iptables v1.2.9: Couldn't load match layer7':/usr/local/lib/iptables/libipt_layer7.so: cannot open shared object
file: No such file or directory

when i try to compile manually, iam geeting the ipt_layer7.h not found.

cc -O2 -Wall -Wunused -I/usr/src/linux-2.4.22-1.2115.nptl/include -Iinclude/
-DIPTABLES_VERSION=\"1.2.9\" -fPIC -o extensions/libipt_layer7_sh.o -c
extensions/libipt_layer7.c

extensions/libipt_layer7.c:21:45: linux/netfilter_ipv4/ipt_layer7.h: No such file or directory
extensions/libipt_layer7.c:52: warning: `struct ipt_layer7_info' declared inside parameter list
extensions/libipt_layer7.c:52: warning: its scope is only this definition or declaration, which is probably not what you want extensions/libipt_layer7.c: In function `parse_protocol_file':
extensions/libipt_layer7.c:84: error: `MAX_PROTOCOL_LEN' undeclared (first use in this function)

any suggestion or any proceedure iam doing
correct me give me the right proceedure

hare

----- Original Message -----
From: "Matthew Strait" <[email protected]>
To: "hare ram" <[email protected]>
Cc: <[email protected]>; <[email protected]>; <[email protected]>
Sent: Monday, February 02, 2004 8:17 PM
Subject: Re: where is ipt_layer.h

Quoted 12 lines
Quoted 4 lines

i am using the following things

iptables-1.2.9-layer7-0.4.1.patch
layer7-kernel2.4patch-qos-0.4.1b

You are using the QoS version of the kernel patch and the Netfilter (iptables) version of the userspace patch. You need to either use QoS with iproute2 or Netfilter with iptables.

-matthew