Skip to content

OSError: illegal IP address string passed to inet_pton when IPv6 is disabled #4563

@mjdemilliano

Description

@mjdemilliano

Brief description

Scapy fails to load when IPv6 support is disabled in the kernel.

Scapy version

2.6.0

Python version

3.10.12

Operating system

Ubuntu 22.04.5 LTS

Additional environment information

No response

How to reproduce

  • Start Linux with ipv6.disable=1 in the kernel command line.
  • Start scapy

Actual result

When scapy is started, many modules are imported, which all fail with the message

OSError: illegal IP address string passed to inet_pton

Expected result

When scapy is started, no error message is displayed.

Related resources

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions