No project description provided
Project description
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_TOS
is 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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file windows_dscp_fix-0.2.0.tar.gz
.
File metadata
- Download URL: windows_dscp_fix-0.2.0.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.14.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0db5103cb83d3e91582427d6d6ee690379d85838b2de3d6c268de7afad6c408c |
|
MD5 | a0ff3154bce0885bbc4e860735ad3753 |
|
BLAKE2b-256 | ea60a55e9bb208ed50c58634973aac6d8448b7f31a9238658aac6fa8dce5813b |
File details
Details for the file windows_dscp_fix-0.2.0-cp311-none-win_amd64.whl
.
File metadata
- Download URL: windows_dscp_fix-0.2.0-cp311-none-win_amd64.whl
- Upload date:
- Size: 108.4 kB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.14.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c31c62b180c5063b58af0261d8cf1a666cd6a9ae345b143c45a8f24157da90c |
|
MD5 | 8bd4fb4d1fe1f183e05598f9998865fb |
|
BLAKE2b-256 | a2c96c4febce4838ed1563bd9fbbf59cb924a508524ac2a43bad872b34bb75f8 |