Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
mjdemilliano opened this issue Oct 8, 2024 · 4 comments

Comments

@mjdemilliano
Copy link

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

@mjdemilliano
Copy link
Author

scapy uses socket.has_ipv6 as part of its logic, but socket.has_ipv6 is True even when the system is started with ipv6.disable=1.

@guedou
Copy link
Member

guedou commented Oct 8, 2024 via email

@gpotter2
Copy link
Member

gpotter2 commented Oct 8, 2024

Duplicate of #4541

@gpotter2 gpotter2 marked this as a duplicate of #4541 Oct 8, 2024
@gpotter2 gpotter2 closed this as completed Oct 8, 2024
@mjdemilliano
Copy link
Author

Sorry for not having spotted that this is a duplicate of #4541, I did make an effort to find whether this issue had already been reported but it somehow didn't show up in my search results, therefore I thought that nobody had reported this yet.

I confirm that #4560 is also a fix for the case that I reported. Thanks for looking into this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants