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

sr with filter not working on loopback on OpenBSD #4627

Open
sthen opened this issue Jan 3, 2025 · 2 comments · May be fixed by #4670
Open

sr with filter not working on loopback on OpenBSD #4627

sthen opened this issue Jan 3, 2025 · 2 comments · May be fixed by #4670
Labels

Comments

@sthen
Copy link

sthen commented Jan 3, 2025

Brief description

Using sr with filter= parameters when sending to addresses reached via lo0 results in replies not being picked up.

Scapy version

2.6.1

Python version

3.12.8

Operating system

OpenBSD amd64 -current

Additional environment information

No response

How to reproduce

>>> p = sr1(IP(dst="127.0.0.1")/ICMP()/"XXXXXXXXXXX", filter="ip", timeout=3)
Begin emission

Finished sending 1 packets

Received 0 packets, got 0 answers, remaining 1 packets

Trying the same with another local IP address results in the same issue. The same without filter succeeds. The same with a filter but a remote IP address succeeds.

Actual result

No response

Expected result

No response

Related resources

No response

@guedou
Copy link
Member

guedou commented Jan 4, 2025

Thanks for your detailed message. Unfortunately, the loopback interface is a strange beast, that does not exactly work like a regular one. Is filter working ion a regular interface?

@gpotter2 gpotter2 added the bug label Feb 22, 2025
@gpotter2 gpotter2 linked a pull request Feb 22, 2025 that will close this issue
@gpotter2
Copy link
Member

This is fixed in #4670 ! Sorry for the delay

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

Successfully merging a pull request may close this issue.

3 participants