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

Add support for setting TypeOfService/TrafficClass on connections #4757

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

anrossi
Copy link
Contributor

@anrossi anrossi commented Jan 21, 2025

Description

Resolves #4767. Add support for applications to set the Type of Service/Traffic Class field all traffic sent from a connection.

Testing

TBD

Documentation

Updated the settings document with the new get/set param.

src/core/connection.c Outdated Show resolved Hide resolved
CMsg = (PWSACMSGHDR)&CMsgBuffer[CMsgLen];
CMsgLen += WSA_CMSG_SPACE(sizeof(INT));
CMsg->cmsg_level =
Route->LocalAddress.si_family == QUIC_ADDRESS_FAMILY_INET ?
Copy link
Contributor Author

Choose a reason for hiding this comment

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

LocalAddress might be the wrong address to use; if trying to send to an IPv4 address using a dual-mode socket, you need to set the IPv4 IP_TOS, instead of the IPV6_TCLASS

src/core/connection.c Outdated Show resolved Hide resolved
src/core/connection.c Outdated Show resolved Hide resolved
@@ -7207,27 +7228,55 @@ QuicConnParamGet(
}

case QUIC_PARAM_CONN_ORIG_DEST_CID:

Copy link
Member

Choose a reason for hiding this comment

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

nit: don't modify code that's not relevant to this PR?

src/inc/msquic.h Outdated Show resolved Hide resolved
src/inc/quic_datapath.h Outdated Show resolved Hide resolved
Copy link

codecov bot commented Jan 31, 2025

Codecov Report

Attention: Patch coverage is 13.63636% with 19 lines in your changes missing coverage. Please review.

Project coverage is 86.74%. Comparing base (ba795e0) to head (2ea4426).
Report is 10 commits behind head on main.

Files with missing lines Patch % Lines
src/core/connection.c 9.52% 19 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4757      +/-   ##
==========================================
- Coverage   87.38%   86.74%   -0.64%     
==========================================
  Files          56       56              
  Lines       17400    17421      +21     
==========================================
- Hits        15205    15112      -93     
- Misses       2195     2309     +114     

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support Specifying DSCP for QUIC Connections
2 participants