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
Hashes for windows_dscp_fix-0.2.0-cp311-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c31c62b180c5063b58af0261d8cf1a666cd6a9ae345b143c45a8f24157da90c |
|
MD5 | 8bd4fb4d1fe1f183e05598f9998865fb |
|
BLAKE2b-256 | a2c96c4febce4838ed1563bd9fbbf59cb924a508524ac2a43bad872b34bb75f8 |