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;