diff options
author | Bernd Eckenfels <net-tools@lina.inka.de> | 2003-06-28 03:19:04 +0000 |
---|---|---|
committer | Bernd Eckenfels <net-tools@lina.inka.de> | 2003-06-28 03:19:04 +0000 |
commit | a1c938f0762e600a5b555b8b060f8a35cc573f4d (patch) | |
tree | e9bcc94832254ae34f24d2f8967e4a9898305a90 /mii-tool.c | |
parent | bugfix: Skipping readlist, if readlist_proc sicceeded is not a (diff) | |
download | net-tools-a1c938f0762e600a5b555b8b060f8a35cc573f4d.tar.gz net-tools-a1c938f0762e600a5b555b8b060f8a35cc573f4d.tar.bz2 net-tools-a1c938f0762e600a5b555b8b060f8a35cc573f4d.zip |
Use new style MII ioctls only. This will give you a warning, if compiled
with old kernel source tree. It will also not work if compiled with
new source on old kernels. The new ioctls also require root for reading, the
old didnt. This fixes Debian bug #133648. No fallback compatibility
is included for reasons of cleaner source.
Diffstat (limited to 'mii-tool.c')
-rw-r--r-- | mii-tool.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -429,6 +429,9 @@ int main(int argc, char **argv) perror("socket"); exit(-1); } + + if (verbose > 1) + printf("Using SIOCGMIIPHY=0x%x\n", SIOCGMIIPHY); /* No remaining args means show all interfaces. */ if (optind == argc) { |