Skip to content

WIP: Add Ipv6 support to BaseConnection#758

Closed
jcronenberg wants to merge 2 commits intoagama-project:masterfrom
jcronenberg:ipv6_base_connection
Closed

WIP: Add Ipv6 support to BaseConnection#758
jcronenberg wants to merge 2 commits intoagama-project:masterfrom
jcronenberg:ipv6_base_connection

Conversation

@jcronenberg
Copy link
Copy Markdown
Contributor

Problem

Ipv6 is missing from Agama BaseConnection

Solution

This PR aims to implement what is already there for ipv4 in BaseConnection also for ipv6.

Testing

  • Extended existing unit test
  • Tested manually

Notes

To not duplicate all the code I used the duplicate crate which makes the process of creating macros easier. The macros could also of course be written into the code directly but like I said this makes it more convenient and also has a cleaner syntax IMO. However it of course introduces a new dependency, let me know if this is a problem.
I also tried my hand at using generics to solve the code duplication problem but ran into some issues where honestly my rust knowledge wasn't enough, so if this path is desired I would need some help.
Let me know what you think 🙂

@coveralls
Copy link
Copy Markdown

Coverage Status

coverage: 72.665% (+0.01%) from 72.653% when pulling de60666 on jcronenberg:ipv6_base_connection into 7d0b821 on openSUSE:master.

@imobachgs imobachgs mentioned this pull request Sep 20, 2023
6 tasks
@jcronenberg
Copy link
Copy Markdown
Contributor Author

I think the approach of #761 is better. So let's continue with that.

@jcronenberg jcronenberg deleted the ipv6_base_connection branch October 4, 2023 12:32
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