nc captures 1024 bytes
Bruce M. Simpson
bms at FreeBSD.org
Tue Aug 28 13:52:49 PDT 2007
Weiguang Shi wrote:
> nc might be waiting on all the interfaces; enumerating MTUs and choosing the largest
> sounds complicated, especially when some interfaces can be configured to receive
> jumbo frames. Why not just use something like 64KB as the other user
> suggested or something even larger?
>
That is the easy fix, yes. :^)
If the socket's pcb laddr is bound to an IP, and IP to which it is bound
stays on the same physical interface, then the MTU may easily be
obtained. If it's INADDR_ANY, or you expect the IP to be dynamically
reconfigured on another interface, then auto-tuning is not possible.
regards,
BMS
More information about the freebsd-net
mailing list