This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: max IP packet size = 9216 B. Why?
> sendto returns the error code 322 or EMSGSIZE "Message too long".
> I forgot to tell that's because the high water level of the send socket
> (o->so_snd.sb_hiwat) is 9216 B (=0x2400) (in file
> bsd_tcpip/current/src/sys/kern/uipc_socket.c:523).
>
> I will try to increase the socket's high water level (after I have found
> where it is set ;-).
I think you can set it with setsockopt(). The option names are
SO_SNDBUF & SO_RCVBUF. However, there might be a system check to
ensure they are not too large.
Andrew
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss