nDPId icon indicating copy to clipboard operation
nDPId copied to clipboard

Could not get netmask for pcap device vmx0: No such file or directory

Open fateme81 opened this issue 2 years ago • 3 comments

The command i use : ./nDPId -u root -g root -l -c 127.0.0.1:7000

And the result is :

nDPId: version 1.5-199-g29904cfb

nDPI version: 4.7.0-4260-1f693c3f
 API version: 8445
pcap version: 1.10.4

gcrypt version: 1.8.6internal

nDPId: Capturing packets from default device: vmx0
nDPId: vmx0 IPv4 address netmask subnet: 192.168.162.61 255.255.255.0 192.168.162.0
nDPId [error]: Could not get netmask for pcap device vmx0: No such file or directory

and the result of ifconfig :

vmx0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
	description: port1
	options=8000b8<VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM>
	ether 00:50:56:96:4c:e6
	inet6 fe80::250:56ff:fe96:4ce6%vmx0 prefixlen 64 scopeid 0x1
	inet 192.168.162.61 netmask 0xffffff00 broadcast 192.168.162.255
	media: Ethernet autoselect
	status: active
	nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
enc0: flags=0<> metric 0 mtu 1536
	groups: enc
	nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
	options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
	inet6 ::1 prefixlen 128
	inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
	inet 127.0.0.1 netmask 0xff000000
	groups: lo
	nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
pflog0: flags=100<PROMISC> metric 0 mtu 33160
	groups: pflog
pfsync0: flags=0<> metric 0 mtu 1500
	groups: pfsync

can you help me fix this ?

fateme81 avatar Dec 11 '23 11:12 fateme81

I'll investigate this ASAP. Thanks for the report!

utoni avatar Dec 11 '23 13:12 utoni

I've found the issue. Working on a fix.

utoni avatar Dec 15 '23 15:12 utoni

@fateme81 Sorry for beeing late. Commit ea96818 should fix this issue and is now available in the main branch.

utoni avatar Feb 07 '24 14:02 utoni

Bug fixed in main branch.

utoni avatar Aug 19 '24 15:08 utoni