Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
获取 MTU 大小值的 POSIX 函数是什么?谢谢。
不,没有通用的 POSIX 函数。您可以做的最好的事情是在套接字上调用GET_MTU/ SIOCGIFMTU ioctl,但这不在 POSIX 标准中。并非所有 POSIX 都支持。
GET_MTU
SIOCGIFMTU
ioctl