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 · 1 comment
Open

sr with filter not working on loopback on OpenBSD #4627

sthen opened this issue Jan 3, 2025 · 1 comment

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?

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

2 participants