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 /include | |
parent | 5b24d94bb8b98914b78e4cc60af8d0b5d67b42c2 (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 'include')
-rw-r--r-- | include/mii.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/include/mii.h b/include/mii.h index 1ef7ccc..71e0f9d 100644 --- a/include/mii.h +++ b/include/mii.h @@ -6,11 +6,14 @@ * Copyright (C) 2000 David A. Hinds -- dhinds@pcmcia.sourceforge.org */ -#ifndef _LINUX_MII_H -#define _LINUX_MII_H +#ifndef _NETTOOL_MII_H +#define _NETTOOLS_MII_H + +#include <linux/sockios.h> /* network interface ioctl's for MII commands */ #ifndef SIOCGMIIPHY +#warning "SIOCGMIIPHY is not defined by your kernel source" #define SIOCGMIIPHY (SIOCDEVPRIVATE) /* Read from current PHY */ #define SIOCGMIIREG (SIOCDEVPRIVATE+1) /* Read any PHY register */ #define SIOCSMIIREG (SIOCDEVPRIVATE+2) /* Write any PHY register */ @@ -83,4 +86,4 @@ struct mii_data { #define MII_ANER_PAGE_RX 0x0002 #define MII_ANER_LP_AN_ABLE 0x0001 -#endif /* _LINUX_MII_H */ +#endif /* _NETTOOLS_MII_H */ |