How to get MTU in POSIX

What is the POSIX function to get the MTU size value? Thank.

+3
source share
1 answer

No, there is no general POSIX function for this. The best you can do is call GET_MTU/ SIOCGIFMTU ioctlon the socket, but this is not POSIX compliant. not supported by all POSIX.

+4
source

Source: https://habr.com/ru/post/1737989/


All Articles