tibbs / rpms / iftop

Forked from rpms/iftop 6 years ago
Clone
7da2ca1
Patch by Robert Scheck <robert@fedoraproject.org> for iftop >= 1.0pre4 which fixes
7da2ca1
the regression introduced with 1.0pre4 resulting in a broken MAC address output.
7da2ca1
This patch was proposed to upstream at Mon, 20 Jan 2014 01:58:57 +0100. See also
7da2ca1
the following links for details:
7da2ca1
7da2ca1
 - https://bugzilla.redhat.com/show_bug.cgi?id=1063298
7da2ca1
 - https://bugzilla.redhat.com/show_bug.cgi?id=1165349
7da2ca1
7da2ca1
--- iftop-1.0pre4/iftop.c			2014-01-19 21:21:19.000000000 +0100
7da2ca1
+++ iftop-1.0pre4/iftop.c.mac-address		2014-01-20 01:55:16.000000000 +0100
7da2ca1
@@ -55,7 +55,7 @@
7da2ca1
 
7da2ca1
 /* ethernet address of interface. */
7da2ca1
 int have_hw_addr = 0;
7da2ca1
-char if_hw_addr[6];    
7da2ca1
+unsigned char if_hw_addr[6];    
7da2ca1
 
7da2ca1
 /* IP address of interface */
7da2ca1
 int have_ip_addr = 0;