Skip to content

Can't attach to IPv6-only interfaces #3

@dleonard0

Description

@dleonard0

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions