Bug#511395: mii-tool: link parter capabilities wrong

Ben Hutchings ben at decadent.org.uk
Sat Oct 3 00:31:19 UTC 2009


Yes, the 1000BASE-T capabilities are clearly the wrong way round.

Patch:

--- net-tools-1.60.orig/mii-tool.c
+++ net-tools-1.60/mii-tool.c
@@ -355,9 +355,9 @@
 	    printf("remote fault, ");
 	printf((bmsr & MII_BMSR_LINK_VALID) ? "link ok" : "no link");
 	printf("\n  capabilities:%s", media_list(bmsr >> 6, bmcr2, 0));
-	printf("\n  advertising: %s", media_list(advert, lpa2 >> 2, 0));
+	printf("\n  advertising: %s", media_list(advert, bmcr2, 0));
 	if (lkpar & MII_AN_ABILITY_MASK)
-	    printf("\n  link partner:%s", media_list(lkpar, bmcr2, 0));
+	    printf("\n  link partner:%s", media_list(lkpar, lpa2 >> 2, 0));
 	printf("\n");
     }
     fflush(stdout);
--- END ---

Ben.

-- 
Ben Hutchings
Who are all these weirdos? - David Bowie, about L-Space IRC channel #afp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 828 bytes
Desc: This is a digitally signed message part
URL: <http://lists.alioth.debian.org/pipermail/pkg-net-tools-maintainers/attachments/20091003/dc266a8b/attachment.pgp>


More information about the Pkg-net-tools-maintainers mailing list