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:
parent
80df11254f
commit
9534d90eb9
@ -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 */
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user