Re: to patch, or not to patch? --- 1.2.7a mucked up?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Summary -- 
	Why does the recent patch-o-matic version have 
	extra/ROUTE code that uses "ifname" and "ipto" in
	a structure ... when ... iptables 1.2.7a tries to 
	compile ROUTE support which uses "if_name" and
	"if_index" ??

What version of iptables code goes with what version of
patch-o-matic ?




---- details -----------
problem: need linux box connected to switch mirror/span port on 
	eth0 to take packets TO hostA and burp them out eth1 and
	also take packets FROM hostA and burp them our eth2

I appreciate Cedric's posting. This widens the range of choices
available to me.

They are:
1	- install BSD or drag my sparc20/solaris box here
	and configure IPFilter to 
	take all packets from x.x.x.x and burp them out interface-1
	take all packets to x.x.x.x and burp them out of interface-2
	(known solution, I've done it before)

2	- try Cedric's LARC solution

or
3	- Continue banging my head against POM + iptables



So, of course I'm continuing down the #3 path :-)
(no pain, no gain)

Pulled down redhat8.0 kernel source ... did a "make mrproper"
because they bundled it in a dorky state. 


I pulled down iptables 1.2.6a and 1.2.7a and patch-o-matic20030107.
	cd p-o-m
	KERNEL_DIR=/usr/src/linux-2.4 ./runme extra/ROUTE.patch
	cd ../iptables1.2.7a
	make KERNEL_DIR=/usr/src/linux-2.4

---------got this --------------------------------

Extensions found: IPv4:ROUTE
cc -O2 -Wall -Wunused -I/usr/src/linux-2.4/include -Iinclude/ -DIPTABLES_VERSION=\"1.2.7a\"  -fPIC -o extensions/libipt_ROUTE_sh.o -c extensions/libipt_ROUTE.c
extensions/libipt_ROUTE.c: In function `parse':
extensions/libipt_ROUTE.c:61: structure has no member named `if_name'
extensions/libipt_ROUTE.c:64: structure has no member named `if_name'
extensions/libipt_ROUTE.c:66: structure has no member named `if_name'
extensions/libipt_ROUTE.c:67: structure has no member named `if_index'
extensions/libipt_ROUTE.c:80: structure has no member named `if_name'
extensions/libipt_ROUTE.c:81: structure has no member named `if_index'
extensions/libipt_ROUTE.c:86: structure has no member named `if_index'
extensions/libipt_ROUTE.c: In function `print':
extensions/libipt_ROUTE.c:119: structure has no member named `if_name'
extensions/libipt_ROUTE.c:120: structure has no member named `if_name'
extensions/libipt_ROUTE.c:122: structure has no member named `if_index'
make: *** [extensions/libipt_ROUTE_sh.o] Error 1






It looks like the include is:
/usr/src/linux-2.4.18-27.8.0/include/linux/netfilter_ipv4/ipt_ROUTE.h

which only has:

struct ipt_route_target_info {
        char ifname[IPT_ROUTE_IFNAMSIZ];
        unsigned int ipto;
};





[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux