You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have installed the requirement,cmake,libpcap,libnet.
I followed the INSTALL.max.txt.
When I am trying to use the make command,I got the error as follows:
[ 11%] Building C object src/CMakeFiles/netdiscover.dir/main.c.o
[ 22%] Building C object src/CMakeFiles/netdiscover.dir/ifaces.c.o
/Users/jz/Documents/ctf/tools/netdiscover/src/ifaces.c:207:20: error: use of
undeclared identifier 'SIOCGIFHWADDR'
if (ioctl(fd,SIOCGIFHWADDR,&ifr)==-1) {
^
/Users/jz/Documents/ctf/tools/netdiscover/src/ifaces.c:215:15: error: no member
named 'ifr_hwaddr' in 'struct ifreq'
if (ifr.ifr_hwaddr.sa_family!=ARPHRD_ETHER) {
~~~ ^
/Users/jz/Documents/ctf/tools/netdiscover/src/ifaces.c:220:46: error: no member
named 'ifr_hwaddr' in 'struct ifreq'
unsigned char* mac=(unsigned char*)ifr.ifr_hwaddr.sa_data;
~~~ ^
3 errors generated.
make[2]: *** [src/CMakeFiles/netdiscover.dir/ifaces.c.o] Error 1
make[1]: *** [src/CMakeFiles/netdiscover.dir/all] Error 2
make: *** [all] Error 2
The text was updated successfully, but these errors were encountered:
I have installed the requirement,cmake,libpcap,libnet.
I followed the INSTALL.max.txt.
When I am trying to use the make command,I got the error as follows:
The text was updated successfully, but these errors were encountered: