summaryrefslogtreecommitdiff
path: root/net/slurm/files/patch-src_if__media.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/slurm/files/patch-src_if__media.c')
-rw-r--r--net/slurm/files/patch-src_if__media.c27
1 files changed, 25 insertions, 2 deletions
diff --git a/net/slurm/files/patch-src_if__media.c b/net/slurm/files/patch-src_if__media.c
index d7da6b15e515..f64c4f8a1581 100644
--- a/net/slurm/files/patch-src_if__media.c
+++ b/net/slurm/files/patch-src_if__media.c
@@ -1,6 +1,6 @@
---- src/if_media.c.orig
+--- src/if_media.c.orig 2004-09-27 13:08:59 UTC
+++ src/if_media.c
-@@ -95,8 +95,13 @@
+@@ -95,8 +95,13 @@ int get_if_speed (char *ifstring)
*
*/
@@ -14,3 +14,26 @@
#ifdef MEDIADEBUG
printf(" all: %6d\n", ifmr.ifm_current);
+@@ -160,22 +165,6 @@ int get_if_speed (char *ifstring)
+ break;
+ } /* end switch physical */
+ break;
+- /* FDDI interfaces */
+- /* fpa doesn't seem to support SIOCGIFMEDIA on FreeBSD
+- * so we won't get here but anyway ...
+- */
+- case IFM_FDDI:
+- switch (physical)
+- {
+- case IFM_FDDI_SMF:
+- case IFM_FDDI_MMF:
+- case IFM_FDDI_UTP:
+- speed = 100 * 1000;
+- break;
+- default:
+- speed = ERR_IFACE_NO_SPEED;
+- }
+- break;
+ #if WIRELESS
+ /* IEEE 802.11 wireless interfaces */
+ case IFM_IEEE80211: