问题
After some search on the Internet,I came to know that, following are the list of options available to get/set parameters to the ethernet interface.
SIOCETHTOOL
SIOCGMIIPHY
SIOCGIFFLAGS
I even saw some 'stackoverflow' questions regarding the usage of SIOCETHTOOL. But the questions I have are:
- Comparison of these three interfaces (means API's) in terms of the features they offer and support in multiple kernels. When should one of these options should be preferred over the others.
- I hardly find documentations for
SIOCETHTOOL
andSIOCGMIIPHY
. Can you please point to the same?
来源:https://stackoverflow.com/questions/33039485/siocethtool-vs-siocgmiiphy-vs-siocgifflags