Skip to content

Conversation

@astro
Copy link
Contributor

@astro astro commented May 7, 2019

Sorry to steal your time again, but did anyone notice that in #293 I broke normal sockets when a RawSocket was listening on that proto?

This PR reverts most of the changes and moves ICMP reply prevention into process_udp(). This solves any ICMP errors for the DHCP case but doesn't affect any other non-UDP protocol.

The test from #293 is kept, another one is added for this specific problem.

To further improve error reply behaviour in the presence of RawSockets it would probably be useful to let the RawSockets validate incoming packets, so that would practically be a filter...

…tion by other sockets.

This reverts commit f56666a.

Adds another test case.
@whitequark
Copy link
Contributor

@m-labs-homu r+

@m-labs-homu
Copy link

📌 Commit 503a780 has been approved by whitequark

@m-labs-homu
Copy link

⌛ Testing commit 503a780 with merge 83e907e...

m-labs-homu pushed a commit that referenced this pull request May 7, 2019
…tion by other sockets.

This reverts commit f56666a.

Adds another test case.

Closes: #295
Approved by: whitequark
@m-labs-homu
Copy link

💔 Test failed - status-travis

@whitequark
Copy link
Contributor

@m-labs-homu r+

@m-labs-homu
Copy link

📌 Commit f9e46d1 has been approved by whitequark

m-labs-homu pushed a commit that referenced this pull request May 8, 2019
@m-labs-homu
Copy link

⌛ Testing commit f9e46d1 with merge 7c606ac...

@m-labs-homu
Copy link

☀️ Test successful - status-travis
Approved by: whitequark
Pushing 7c606ac to master...

@astro astro deleted the raw-sockets-with-other-sockets branch May 8, 2019 21:38
@astro astro mentioned this pull request May 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants