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

Re: [dccp] mmap issues when testing DCCP



Marie,

I have just tested this now and it is working fine in our lab.

There has been a reasonable amount of code being developed recently and
if you are not using the latest version I would encourage you to
download it from the git tree (I think you may be using the older
Subversion tree from memory).

To do this it is documented at http://wlug.org.nz/DCCP

You may also wish to discuss any issues you have with this stack on the
dccp at vger.kernel.org mailing list (list info can be found at
http://vger.kernel.org/vger-lists.html)

Regards,

Ian

Marie CAMIER wrote:
> Hi
> 
> When testing DCCP 2.6 implementation using the two files Client.c and Server.c
> provided with the DCCP 2.4 implementation I get an error from the mmap()
> function :
> 
> Client.c line 133 :
> 
> #ifdef DCCP
>        ri=(struct dcp_rateinfo *)
> mmap(NULL,PAGE_SIZE,PROT_READ,MAP_PRIVATE,sd,0);
> 
> 	if (ri == MAP_FAILED)
> 	{
> 		printf("%s: cannot mmap  %s \n ", argv[0],strerror(errno));
> 		exit(1);
> 	}
> #endif
> 
> The error I get is [ENODEV] : The fildes argument refers to a file whose type is
> not supported by mmap().
> 
> The DCCP socket has though been succesfully opened, according to the Client and
> to logs from /var/log/syslog.
> Has anybody had this problem before ?
> 
> Marie
> 
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
>