Windows DSCP Fix Python Package
A Python package to fix setsockopt(..,IP_TOS,..) behavior on Windows.
Why
-
In the IPPROTO_IP socket options for
setsockopt,IP_TOSis marked as "DO NOT USE", and Windows QoS2 subsystem takes over the admission. -
ToS/DSCP value is still an important field for QoS guarantee in IEEE 802.11 network, according to RFC 8325. However, there is no existing convenient method to tune the value.
-
On Windows, only DSCP value is allowed to set except ECN bits and the Administrator permission is required (link). So, this functionality has to be maintained as a third-party module, which will not be accepted by mainline.
Usage
import socket
import windows_dscp_fix
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
sock.setsockopt(socket.IPPROTO_IP, socket.IP_TOS, 128) #NOTE: Administrator permission required
Metadata
Release files for windows-dscp-fix 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| windows_dscp_fix-0.2.1.tar.gz | 6.5 kB | Without provenance | Details for windows_dscp_fix-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| windows_dscp_fix-0.2.1-cp311-none-win_amd64.whl | CPython 3.11 | none | Windows x86-64 | Details for windows_dscp_fix-0.2.1-cp311-none-win_amd64.whl |
Total release size: 115.0 kB
Release files / windows_dscp_fix-0.2.1.tar.gz
| Download URL | windows_dscp_fix-0.2.1.tar.gz |
|---|---|
| Size | 6.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d480fadca0a8c1a276538afce6f119e0c2f9d2dc00318903230720dd7cc791b4
|
|
BLAKE2b-256 checksum How to use checksums |
9e38fbbb5ec99c0d9d834d31aa637268dae96c3620f9bb3658f2f3a20872265f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/0.14.13
|
Release files / windows_dscp_fix-0.2.1-cp311-none-win_amd64.whl
| Download URL | windows_dscp_fix-0.2.1-cp311-none-win_amd64.whl |
|---|---|
| Size | 108.5 kB |
| Tags | CPython 3.11 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
a2a5f12e9f5d191f909b96536bec3337c9233721fd0d1ce054c9968c769a5b53
|
|
BLAKE2b-256 checksum How to use checksums |
5ec9b65a3c0a428ec805230ef3d39cc498ba32db8d4b5fc32e28b72475057cc5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/0.14.13
|
Security for windows-dscp-fix 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.