Skip to contentSkip to conversation

random match on linux-2.6

DISCUSSION Javier Valencia 2 participants 2 messages Apr 16, 2005 – Apr 17, 2005 netfilter

lore
Share & tools
lore
#0 lore raw

I've seen that it's not available on 2.6, but it's just the same in both kernels, copied contents of ...random/linux to ...random/linux-2.6, and worked fine. I don't know if you already know that.

enigma ~ # uname -a
Linux enigma 2.6.11-gentoo-r4 #2 Tue Mar 29 23:30:54 WEST 2005 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz GenuineIntel GNU/Linux

enigma ~ # iptables -A INPUT -p icmp -m random --average 30 -j DROP enigma ~ # iptables --list -v -n
Chain INPUT (policy ACCEPT 190K packets, 77M bytes)

pkts bytes target     prot opt in     out     source               destination        
   0     0 DROP       icmp --  *      *       0.0.0.0/0            

0.0.0.0/0 random 30%

#1 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoting Javier Valencia on 2005-04-16 20:55 UTC:

Quoted 3 lines

I've seen that it's not available on 2.6, but it's just the same in both kernels, copied contents of ...random/linux to ...random/linux-2.6, and worked fine. I don't know if you already know that.

There are some minor changes that usually needs to be done when migrating to 2.6.. it's mostly coding standard differencies, usually they work as is also..

Someone already ported the random match in November last year. There are some other patches as well that have not gotten merged, I'm in the process of collecting them in order to remind the developers about their existence..

- --
- - xkr47
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFCYr7rxyF48ZTvn+4RAsZHAKDhWvcyfHFhvJxYXcGww0eVGlAXQQCfbcW9 n67tZVesixFmL0TsRM1Nh04=
=kKhs
-----END PGP SIGNATURE-----