Commit Graph

10 Commits

Author SHA1 Message Date
Paul Warren
96a691484e 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>
2017-01-04 22:55:26 +00:00
pdw
836733ba14 Fixes for a bunch of compiler warnings. 2014-01-05 20:02:51 +00:00
pdw
6d384fc12d Portability fixes from Mats Erik Andersson <debian@gisladisker.se>
It restores compilability and most functionality for

   GNU/Linux,
   GNU/kFreeBSD,
   FreeBSD,
   OpenBSD,
   OpenSolaris/NexentaCore.
2014-01-01 15:22:48 +00:00
pdw
3e90c6b547 Fixed segfault when selecting interfaces with empty MAC address (e.g. gprs
interface on Nokia N900) - Graham Ings <graham@nerve.org.za>
2011-10-02 21:14:14 +00:00
pdw
6197223f52 Applied patch from Mats Erik Andersson <mats.andersson@gisladisker.se>
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=427852#30

Adds support for IPv6

Also fixes:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=477928 (minor typo)

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=595169 (performance problem
with address hashing)

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=598367 (failing link address
detection for GNU/kfreebsd)
2010-11-27 11:06:12 +00:00
5069cba411 Small changes to support Mac OS X (Ken McLeod email of 20051027). 2005-10-27 09:31:44 +00:00
pdw
44206c8a75 Patch to get hardware address on FreeBSD and OpenBSD from Nicolas Bernard
<n.bernard@worldonline.fr>

Here is a patch which uses sysctl to get the hardware address. I tried
it on FreeBSD 5.3 and OpenBSD 3.5. Note that I don't know how this code
work on an non-ethernet interface (tried on some pseudo-interface and
get an all-0 address, but...).

I left the code in the get_addrs_ioctl fct despite the fact it uses
sysctl because it was simpler.

Oh yes, I used gotos, I found them more readable in this case than
deeply imbricated ifs.
2005-05-03 20:14:53 +00:00
pdw
3824538a29 Cosmetic changes. 2003-10-14 22:33:45 +00:00
pdw
b35175b006 *** empty log message *** 2003-06-08 18:02:44 +00:00
pdw
4089483e6a Solaris/autoconf patch from Jonathan Abbey <jonabbey@ganymeta.org> 2003-06-06 22:42:35 +00:00