IP ToS option is not working
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 5.9k
- Forks
- 406
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
It seems the -tos option is not working. I built the lastest release using the Dockerfile provided in the code and ran a client and server container based on centos 7. When inspecting the packets from the client, the ToS field in the IP header was not set.
I ran the server and client as following:
Dockerfile to test:
FROM centos:7
COPY ethr /
Server:
docker run --rm --name server ethr-test ./ethr -s
Client:
docker run --rm --name client ethr-test ./ethr -c 172.17.0.2 -b 10M -p tcp -t b -tos 56
I inspected the packets in the docker0 interface using Wireshark and this is how they looked:

I tried different values for ToS but none of them worked.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the report using the provided Dockerfile and the server and client commands, then inspect traffic on the docker0 interface. Start at the ./ethr entry point and trace how -tos 56 is handled; done means the requested value appears in the IP header for the generated traffic.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, go
- Domain
- networking
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100