Next-in-Thread Next Message Previous Message Next Thread

Feedback: here is my solution, hope it works for you too

Forum: Linux IP NAT Forum
Re: Question Can NAT do this? (Ennio Porro)
Re: Feedback Probably but a little more info may be needed (Bill Harris)
Re: Question problem with ipnatadm compiling under 2.0.33 (Roberto Favaro)
Keywords: Compiling,Ipnatadm
Date: Sun, 01 Feb 1998 22:32:55 GMT
From: Jim M. Poon <jpoon@megahertz.net>

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

Next-in-Thread Next Message Previous Message Next Thread

to: "here is my solution, hope it works for you too"

Subscribe Membership Move/Remove Admin Mode Help for HyperNews 1.9.5