[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
How to expand the udp_sendspace
- Date: Wed, 18 Mar 2009 11:36:22 +1100
- From: chrisj at rtems.org (Chris Johns)
- Subject: How to expand the udp_sendspace
Busalski, Wilfried wrote:
> I need to send more than the 9216 Bytes in a udp packet.
The data passed into a send call will be broken up (fragmentation) into MTU
size packets for the physical transporting. If you send more than the MTU you
will not have a 1:1 relationship with the packets on the physical interface.
> How do I expand the size of the udp_sendspace without changing the
> source of udp_usrreq.c ?
Did you try the setsockopt  and SO_SNDBUF ?
> Any Ideas ?
Take a look at the ttcp code in:
I think it sends large UDP packets to get the highest line rate possible.
 FreeBSD Man page for getsockopt