sock_recvmsg buffer size limits

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

 



Title: sock_recvmsg buffer size limits

Hello,

I am writing a device driver that has a UDP socket used for receiving buffers of data.

1/ Are there any limits to what size of buffer can be received by sock_recvmsg() It works OK for small values:

sock_recvmsg(sock, &msg, 1024, 0);

However when I try larger values:

sock_recvmsg(sock, &msg, 10240, 0);

..my system froze, even when I sent a small UDP packet (e.g. 5 bytes).

I am setting the  msg.msg_iov->iov_len field to 1024 and 10240 respectively, and msg.msg_flags = 0;

2/ Is there anywhere I can find documentation on this function, for example specifying the maximum buffer size?

Thanks in advance,

David


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux