Files
iftop/MAC-address-format.patch
Lars Vogdt 65659c3d84 - added MAC-address-format.patch : defining the MAC address of the
interface as char instead of integer, which results in correct
  commandline output
  http://lists.beasts.org/pipermail/iftop-users/2014-March/000413.html
- added 001-Avoid-32-bit-overflow-for-rates-when-calculating-bar.patch
  http://lists.beasts.org/pipermail/iftop-users/2014-March/000414.html
- added 002-scale-up-to-tbit.patch : Extend the scale[] array up to
 terabit. 10gbit is not uncommon, 100gbit 40 and 100 gbit are coming,
  400 gbit and terabit are future possibilities.
- 003-rateidx_init-fix.patch : When calculating the first rateidx,
  we were overshooting to the next scale. Fix that.
- 004-iftop-unlimited_text_output.patch : Allow unlimited number of
  lines in text output, using "iftop -t -L 0"

OBS-URL: https://build.opensuse.org/package/show/network:utilities/iftop?expand=0&rev=24
2014-04-30 07:45:29 +00:00

23 lines
681 B
Diff

From: Xiaoguang Sun <sun.xiaoguang@yoyosys.com>
Date: Tue, 11 Mar 2014 13:18:46 +0100
Subject: MAC address format
Forwarded: http://lists.beasts.org/pipermail/iftop-users/2014-March/000413.html
---
iftop.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/iftop.c b/iftop.c
index a090dcf..883782e 100644
--- a/iftop.c
+++ b/iftop.c
@@ -713,7 +713,7 @@ void packet_init() {
if(have_hw_addr) {
fprintf(stderr, "MAC address is:");
for (i = 0; i < 6; ++i)
- fprintf(stderr, "%c%02x", i ? ':' : ' ', (unsigned int)if_hw_addr[i]);
+ fprintf(stderr, "%c%02x", i ? ':' : ' ', (unsigned char)if_hw_addr[i]);
fprintf(stderr, "\n");
}