Switched back to SIOCGIFHWADDR for getting hardware address. Other platforms will need some more work...
This commit is contained in:
9
iftop.h
9
iftop.h
@@ -36,13 +36,4 @@ void ui_init(void);
|
||||
void options_read(int argc, char **argv);
|
||||
|
||||
|
||||
/* Make use of SIOCGIFHWADDR work on FreeBSD and Solaris. */
|
||||
#ifndef SIOCGIFHWADDR
|
||||
# ifdef HAVE_SYS_SOCKIO_H
|
||||
# include <sys/sockio.h> /* Solaris and others?? */
|
||||
# endif
|
||||
# define SIOCGIFHWADDR SIOCGIFADDR
|
||||
# define ifr_hwaddr ifr_addr
|
||||
#endif
|
||||
|
||||
#endif /* __IFTOP_H_ */
|
||||
|
||||
Reference in New Issue
Block a user