summaryrefslogtreecommitdiff
path: root/addrs_ioctl.c
diff options
context:
space:
mode:
authorPaul Warren <pdw@ex-parrot.com>2017-01-04 22:55:26 +0000
committerPaul Warren <pdw@ex-parrot.com>2017-01-04 22:55:26 +0000
commit96a691484e6e3c6fa415b46e466c85323d017baa (patch)
tree8e05de139513a338f336aa0054156316b1868512 /addrs_ioctl.c
parent014c6e628f5bb54f06f290f71770520bb7c403ce (diff)
downloadiftop-96a691484e6e3c6fa415b46e466c85323d017baa.zip
Fix mac address display
iftop would display portions of mac address with large ffffff prefixes. Make if_hw_addr type consistent. Kevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk>
Diffstat (limited to 'addrs_ioctl.c')
-rw-r--r--addrs_ioctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/addrs_ioctl.c b/addrs_ioctl.c
index 870c83b..7d01fb2 100644
--- a/addrs_ioctl.c
+++ b/addrs_ioctl.c
@@ -45,7 +45,7 @@
*/
int
-get_addrs_ioctl(char *interface, char if_hw_addr[], struct in_addr *if_ip_addr, struct in6_addr *if_ip6_addr)
+get_addrs_ioctl(char *interface, u_int8_t if_hw_addr[], struct in_addr *if_ip_addr, struct in6_addr *if_ip6_addr)
{
int s;
struct ifreq ifr = {};