From b31f2d53e09d6d2914328227c18034cb6ad42bf4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Sat, 14 Sep 2013 18:11:43 +0200 Subject: [PATCH] add a constant for 10G base T ethernet. --- headers/posix/net/if_media.h | 1 + src/bin/network/ifconfig/ifconfig.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/headers/posix/net/if_media.h b/headers/posix/net/if_media.h index e0fdc4e76d..ca67cf629d 100644 --- a/headers/posix/net/if_media.h +++ b/headers/posix/net/if_media.h @@ -31,6 +31,7 @@ #define IFM_100_TX 6 /* 100Base-TX - RJ45 */ #define IFM_1000_T 16 /* 1000Base-T - RJ45 */ #define IFM_1000_SX 18 /* 1000Base-SX - Fiber Optic */ +#define IFM_10G_T 22 /* 10GBase-T - RJ45 */ /* General options */ diff --git a/src/bin/network/ifconfig/ifconfig.cpp b/src/bin/network/ifconfig/ifconfig.cpp index e1030558ce..bd36e3c248 100644 --- a/src/bin/network/ifconfig/ifconfig.cpp +++ b/src/bin/network/ifconfig/ifconfig.cpp @@ -105,6 +105,7 @@ static const media_type kMediaTypes[] = { { IFM_100_TX, "100baseTX", "100 MBit, 100BASE-TX" }, { IFM_1000_T, "1000baseT", "1 GBit, 1000BASE-T" }, { IFM_1000_SX, "1000baseSX", "1 GBit, 1000BASE-SX" }, + { IFM_10G_T, "10GbaseT", "10 GBit, 10GBASE-T" }, { -1, NULL, NULL } }, { @@ -1012,4 +1013,3 @@ main(int argc, char** argv) list_interfaces(name); return 0; } -