Open ArchyCho opened 7 years ago
Hi, @ArchyCho, I have the same problem. I have tried the hash table works fine, but the radix tree table not working. Is this bug exist on the same subversion of FreeBSD? I think I can try to port newer version of FreeBSD which may resolve this problem.
After several hours time trying to port code from newer version FreeBSD, this bug is fixed. The git commit id I am using is
commit b62280e683e2d7abd347a4549c51e086b1b8911a
Author: marius <marius@FreeBSD.org>
Date: Fri Mar 25 01:02:12 2016 +0000
Update releng/10.3 to -RELEASE status in preparation for the final
10.3-RELEASE builds.
Approved by: re (implicit)
Hope this help.
On Debian 8.6 cat /etc/debian_version 8.6 uname -a Linux 3.16.36 #1 SMP Sun Dec 11 06:49:18 PST 2016 x86_64 GNU/Linux
./kipfw vale1:1 vale2:1 ./ipfw table 99 create ./ipfw table 99 add 192.168.0.0/24 added: 192.168.0.0/24 0 ./ipfw table 99 list --- table(99), set(0) --- /0 0
The table could not be stored as expected , and could not add another IP prefix.
On FreeBSD ./kipfw vale1:1 vale2:1 ./ipfw table 99 create ./ipfw table 99 add 192.168.0.0/24 added: 192.168.0.0/24 0 ./ipfw table 99 list --- table(99), set(0) --- 192.168.0.0/24 0
It works as expected .
I have test CentOS 7 with the same kernel , same problem , with kernel 4.4.45 , 3.12.69 getting same problem , do anyone could provide solutions or hack of codes to get it work on linux boxes ?