summaryrefslogtreecommitdiff
path: root/net/slurm/files/patch-src_if__media.c
diff options
context:
space:
mode:
authorMichael Landin <mich@FreeBSD.org>2018-11-07 10:02:00 +0000
committerMichael Landin <mich@FreeBSD.org>2018-11-07 10:02:00 +0000
commit266495ae1ca8e417c22d01644daa28cb0c4938ce (patch)
treea39159b9a38ea4f0d595338865768f482db55c44 /net/slurm/files/patch-src_if__media.c
parent- Update WWW (diff)
- fix build on 12.x (remove obsolete network support / IFM_FDDI)
- add LICENSE - update patch format to make portlint happy - bump port revision Reported by: pkg-fallout@
Notes
Notes: svn path=/head/; revision=484392
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: