[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ns] nse compiling



On Thu, May 24, 2001 at 05:56:22PM +0200, Ricciato Fabio wrote:
> Hi,
> I tried to compile nse for emulation support but I received the following
> errors
> 
> emulate/net-ip.cc: In method `int UDPIPNetwork::recv(unsigned char *, int,
> sockaddr &, double &)':
> emulate/net-ip.cc:284: `socklen_t' undeclared (first use this function)
> [stuff deleted]
> where can I find the right source code for net-ip.cc ?

which platform did you use? Some old platforms do not support
socklen_t. Either use a new OS or define socklen_t as a unsigned
32-bit integer could solve your problem. I use

  #define socklen_t unsigned int

on a FreeBSD-3.4 machine.