-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
pktstat fails to start (on Linux, perhaps others) when the interface has no IPv4 address assigned. This is possible in IPv6-only environments.
pktstat -i bridge0
pktstat: bridge0: bridge0: no IPv4 address assigned
This error arises when main.c calls pcap_lookupnet() to get the IPv4 broadcast mask it thinks it needs to pass to pcap_compile(); it treats an error from pcap_lookupnet() as fatal.
It should be a warning, because pcap_compile() can accept a PCAP_NETMASK_UNKNOWN mask.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels