diff options
author | mich <mich@FreeBSD.org> | 2014-05-27 18:15:28 +0800 |
---|---|---|
committer | mich <mich@FreeBSD.org> | 2014-05-27 18:15:28 +0800 |
commit | 3ef0a361e00a44bcea1e4fe1a04856dba97909f4 (patch) | |
tree | 2d8033466921aad92707dd29dfe07d7b92d47703 /net | |
parent | 552bb28326f32035b4e36f952333424ff6911090 (diff) | |
download | freebsd-ports-gnome-3ef0a361e00a44bcea1e4fe1a04856dba97909f4.tar.gz freebsd-ports-gnome-3ef0a361e00a44bcea1e4fe1a04856dba97909f4.tar.zst freebsd-ports-gnome-3ef0a361e00a44bcea1e4fe1a04856dba97909f4.zip |
- Port net/slurm 0.3.3 does not display the interface speed correctly
for at least some gigabit NICs (and, I suspect, all of them on FreeBSD).
Specifically, I know it doesn't work for Intel gigabit NICs that i
use the em(4) driver.
This appears to be due to dodgy bitwise math in the upstream code.
However, I note that the website given for the upstream code no
longer appears to be working, so I'm not sure that there IS an
upstream maintainer any longer.
PR: ports/190160
Submitted by: Rob Levandowski <robl@macwhiz.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/slurm/files/patch-src_if__media.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/net/slurm/files/patch-src_if__media.c b/net/slurm/files/patch-src_if__media.c new file mode 100644 index 000000000000..29790c855112 --- /dev/null +++ b/net/slurm/files/patch-src_if__media.c @@ -0,0 +1,19 @@ + +$FreeBSD$ + +--- src/if_media.c.orig ++++ src/if_media.c +@@ -95,8 +95,13 @@ + * + */ + ++#if __FreeBSD__ >= 2 ++ type = IFM_TYPE(ifmr.ifm_active); ++ physical = IFM_SUBTYPE(ifmr.ifm_active); ++#else + type = ifmr.ifm_active & 0xf0; + physical = ifmr.ifm_active & 0x0f; ++#endif + + #ifdef MEDIADEBUG + printf(" all: %6d\n", ifmr.ifm_current); |