Package: iftop Version: 0.16-1 Severity: important Tags: patch iftop contains the following structure definition in ether.h:
struct ether_header { u_int8_t ether_dhost[ETHER_ADDR_LEN]; u_int8_t ether_shost[ETHER_ADDR_LEN]; u_int16_t ether_type; }; Due to alignment/padding rules on the arm platform, the size of this structure as given by sizeof(struct ether_header) is 16 instead of 14, which renders iftop more-or-less useless. I suggest adding __attribute__((packed)) to the definition of this structure as in the attached patch. -- System Information: Debian Release: testing/unstable APT prefers stable APT policy: (500, 'stable') Architecture: armeb (armv4b) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.13 Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Versions of packages iftop depends on: ii libc6 2.3.5-6.1armeb GNU C Library: Shared libraries an ii libncurses5 5.4-4 Shared libraries for terminal hand ii libpcap0.7 0.7.2-7 System interface for user-level pa iftop recommends no packages. -- no debconf information
--- iftop-0.16/ether.h.orig 2005-10-04 20:19:13.000000000 +0000 +++ iftop-0.16/ether.h 2005-10-04 20:14:39.000000000 +0000 @@ -12,6 +12,6 @@ u_int8_t ether_dhost[ETHER_ADDR_LEN]; u_int8_t ether_shost[ETHER_ADDR_LEN]; u_int16_t ether_type; -}; +} __attribute__((packed)); #endif