|
Apparently this line cause all the troubles: struct in_addr *addrs; nat_set.nat.src = addrs->s_addr; ^^^^^ That's because the compiler dosn't know what the heck "addrs" is and therefore gives "dereferencing pointer to incomplete type" errors. So for linux, I added the following line in the ipnatadm.h because struct in_addr is defined in the arpa/inet.h. #include <arpa/inet.h> Hope this helps! :) Jim |