From 9534d90eb9f4c881ed62fde0d07578ac8b0465c2 Mon Sep 17 00:00:00 2001 From: Hugo Santos Date: Mon, 7 May 2007 05:28:55 +0000 Subject: [PATCH] added IFM_AUTO to if_media and ifconfig. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21049 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/posix/net/if_media.h | 1 + src/bin/network/ifconfig/ifconfig.cpp | 3 +++ 2 files changed, 4 insertions(+) diff --git a/headers/posix/net/if_media.h b/headers/posix/net/if_media.h index 3ea0dd6e36..52635475e0 100644 --- a/headers/posix/net/if_media.h +++ b/headers/posix/net/if_media.h @@ -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 */ diff --git a/src/bin/network/ifconfig/ifconfig.cpp b/src/bin/network/ifconfig/ifconfig.cpp index 3de352fc2e..6e5686cac6 100644 --- a/src/bin/network/ifconfig/ifconfig.cpp +++ b/src/bin/network/ifconfig/ifconfig.cpp @@ -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;