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>
This commit is contained in:
Paul Warren
2017-01-04 22:55:26 +00:00
parent 014c6e628f
commit 96a691484e
5 changed files with 7 additions and 4 deletions

View File

@@ -50,7 +50,7 @@ extern char *strncat2(char *dest, char *src, int n);
*/
int
get_addrs_dlpi(char *interface, char if_hw_addr[], struct in_addr *if_ip_addr)
get_addrs_dlpi(char *interface, u_int8_t if_hw_addr[], struct in_addr *if_ip_addr)
{
int got_hw_addr = 0;
int got_ip_addr = 0;