added IFM_AUTO to if_media and ifconfig.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21049 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Hugo Santos 2007-05-07 05:28:55 +00:00
parent 80df11254f
commit 9534d90eb9
2 changed files with 4 additions and 0 deletions

View File

@ -26,6 +26,7 @@
/* Media subtypes */
/* Ethernet */
#define IFM_AUTO 0
#define IFM_10_T 3 /* 10Base-T - RJ45 */
#define IFM_100_TX 6 /* 100Base-TX - RJ45 */
#define IFM_1000_T 16 /* 1000Base-T - RJ45 */

View File

@ -223,6 +223,9 @@ list_interface(int socket, const char* name)
switch (IFM_TYPE(request.ifr_media)) {
case IFM_ETHER:
switch (IFM_SUBTYPE(request.ifr_media)) {
case IFM_AUTO:
type = "Auto-select";
break;
case IFM_10_T:
type = "10 MBit, 10BASE-T";
break;