Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How get MTU in POSIX

Tags:

mtu

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

like image 666
deddihp Avatar asked Nov 22 '25 05:11

deddihp


1 Answers

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.

like image 74
J-16 SDiZ Avatar answered Nov 24 '25 23:11

J-16 SDiZ



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!