Help! Now I study about NAT (Network Address Translator), it is a new way about translate IP local to public. Ok, the point is when I want to install NAT in LINUX, i got error messages like below. I think this is about coding in nat.h. What should I do with the redefinition error? Thank you for help me. ;) ======================================================== -bash-3.00$ make making all in nat... make[1]: Entering directory `/home/petry/Netbench/NetBench-1.1.0/nat' /home/petry/simple/bin/sslittle-na-sstrix-gcc -Wall -DDEBUG -DCONSTANT_PACKET -I/home/petry/Netbench/NetBench-1.1.0/include -DMAX_PACKETS=10 -c route.c In file included from route.c:95: nat.h:165: redefinition of `struct ifnet' nat.h:174: redefinition of `struct ifqueue' make[1]: *** [route.o] Error 1 make[1]: Leaving directory `/home/petry/Netbench/NetBench-1.1.0/nat' make: *** [sub_all] Error 1 ========================================================
hi..
First check whether you have declared structs more than 1 time or not.
To check open a terminal and go to the directory containing the source code, using cd command and than execute command
grep -rin "struct ifnet" .
This will list all the lines which contains above structure than u can trace its multiple declaration or definition.