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

feat: echo-reply sent when receiving an echo-request. #105

Merged
merged 7 commits into from
Feb 2, 2025

Conversation

Manuel-Pol
Copy link
Collaborator

No description provided.

Issues:
- "Send ICMP Echo" program changed to "Send ping".
- refactor on packet ought to be done.
- Running "Echo-server" program releases too many echo-replies.
@Manuel-Pol Manuel-Pol marked this pull request as draft January 24, 2025 13:49
Main changes:
- The raw packet is received by sendPacke.
- The reception and handling of a packet logic is in Device.

Known bugs/issues:
- When receiving a packet from a removed device, the current device does not send the reply back. It might be better if it send back the reply and let the packet "get lost" in the middle.
@Manuel-Pol Manuel-Pol marked this pull request as ready for review January 28, 2025 21:47
src/types/packet.ts Outdated Show resolved Hide resolved
Comment on lines +120 to +121
// Packet protocol name
getPacketType(): string;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this is the place for this.

@Manuel-Pol Manuel-Pol merged commit 923274d into main Feb 2, 2025
3 checks passed
@Manuel-Pol Manuel-Pol deleted the reply-packets branch February 2, 2025 02:12
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

Successfully merging this pull request may close these issues.

2 participants