Skip to content

Conversation

@sandy191020
Copy link
Contributor

  1. Removed sender_address argument from the swiftnet_send_packet function:
    Simplifies the API by not requiring the caller to provide the sender address.
    Updates all calls to swiftnet_send_packet to reflect this change.

2.Updated related data structures in headers:
SwiftNetClientAddrData and PacketQueueNode no longer expose a separate sender_address field unnecessarily.

3.Refactored packet processing functions:
process_packets.c and other affected files now construct the sender info internally where required.
Ensures consistent handling of client/server packet metadata.

Note :
process_packets.c checks for private IP addresses when processing packets.
Currently, some private IP checks may not fully handle certain cases, so minor issues could arise in environments with unusual IPs.
This is a pre-existing concern and not caused by these changes, but should be reviewed.

@Morcules
Copy link
Owner

Morcules commented Jan 5, 2026

Thank you for contributing :) 🚀

@Morcules Morcules merged commit d2fa5ba into Morcules:main Jan 5, 2026
2 checks passed
@sandy191020 sandy191020 deleted the sender_address_changes branch January 5, 2026 14:07
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