aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernd Eckenfels <net-tools@lina.inka.de>2003-06-28 03:19:04 +0000
committerBernd Eckenfels <net-tools@lina.inka.de>2003-06-28 03:19:04 +0000
commita1c938f0762e600a5b555b8b060f8a35cc573f4d (patch)
treee9bcc94832254ae34f24d2f8967e4a9898305a90 /mii-tool.c
parentbugfix: Skipping readlist, if readlist_proc sicceeded is not a (diff)
downloadnet-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.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mii-tool.c b/mii-tool.c
index 622aa74..af57e91 100644
--- a/mii-tool.c
+++ b/mii-tool.c
@@ -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) {