Skip to content

Conversation

@baxterjo
Copy link
Contributor

Added two repr(u8) enums for the DSCP and ECN fields that are part of the traffic class octet in IPv6 packets. With their respective readers and writers.

Added setters and getters for the two fields in the traffic class octet for the Ipv6Header struct.

Note: AFAIK these enums could also be used for the IPv4 ecn and dscp fields because they have the same location within their respective octets. Something to consider for ergonomics.

@baxterjo
Copy link
Contributor Author

@JulianSchmid would you mind taking a look at this? I would like to use the this implementation in my application rather than my copy/pasta one that is sitting in there now.

@JulianSchmid
Copy link
Owner

Hi @baxterjo ,

Sorry I currently don't have a lot of time. I will try to have a look at it in the following weeks.

Greets
Julian

@JulianSchmid JulianSchmid force-pushed the baxterjo/add-traffic-class-support-ipv6 branch from f66a0ba to 818ad09 Compare April 24, 2025 07:07
@codecov
Copy link

codecov bot commented Apr 24, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.37%. Comparing base (dca1be5) to head (2bfe416).
Report is 8 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff            @@
##           master     #118    +/-   ##
========================================
  Coverage   99.37%   99.37%            
========================================
  Files         185      187     +2     
  Lines       33971    34156   +185     
========================================
+ Hits        33759    33944   +185     
  Misses        212      212            

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@JulianSchmid JulianSchmid merged commit 1b01e71 into JulianSchmid:master Apr 24, 2025
12 checks passed
@baxterjo baxterjo deleted the baxterjo/add-traffic-class-support-ipv6 branch April 24, 2025 15:14
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