Search code examples
mtu

How get MTU in POSIX


What is POSIX function to get MTU Size value ?? Thanks.


Solution

  • No, there is no generic POSIX function for that. The best you can do is to invoke a GET_MTU / SIOCGIFMTU ioctl on the socket, but this is not in the POSIX standard. not supported by all POSIX.