[erlang-questions] Getting the MTU of an IPv4 UDP socket?
Tue Mar 22 22:47:07 CET 2011
# Jesper Louis Andersen 2011-03-22:
> On Tue, Mar 22, 2011 at 22:18, Ivan Ostres <> wrote:
> > MTU is defined on data-link layer, not on transport. If you don't want to do
> > it with PMTU discovery, simplest way is to run "ifconfig" in shell, it shows
> > MTU on OSX and it should do the same on Linux:
> > en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
> That is one way :) Is there one which is less involved, heh.
inet:ifget/N, but it seems you need to supply name of the underlying device too.
More information about the erlang-questions