-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
557 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
indent_style = space | ||
indent_size = 4 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[Makefile] | ||
indent_style = tab |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
*.pyc | ||
*.swp | ||
*.un~ | ||
.pytest_cache | ||
.idea | ||
dist | ||
*.egg-info | ||
/docs/build/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[settings] | ||
multi_line_output=3 | ||
include_trailing_comma=True | ||
force_grid_wrap=0 | ||
use_parentheses=True | ||
line_length=88 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
PYTHON_BIN ?= poetry run python | ||
|
||
format: isort black | ||
|
||
black: | ||
$(PYTHON_BIN) -m black --target-version py38 --exclude '/(\.git|\.hg|\.mypy_cache|\.nox|\.tox|\.venv|_build|buck-out|build|dist|node_modules|webpack_bundles)/' . | ||
|
||
isort: | ||
$(PYTHON_BIN) -m isort src | ||
|
||
publish: | ||
poetry publish |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
mtuprobe | ||
======== | ||
|
||
A tool to probe the current | ||
[MTU](https://en.wikipedia.org/wiki/Maximum_transmission_unit) on an IPv4 path. | ||
|
||
So far it's compatible with Linux only however it can very easily be adapted | ||
to any other operating system. | ||
|
||
## Installation | ||
|
||
``` | ||
pip install mtuprobe | ||
``` | ||
|
||
## Usage | ||
|
||
The default options are sane and should give you good results. Suppose that | ||
you want to know the current effective MTU towards `wikipedia.org`, in a shell | ||
you can try: | ||
|
||
``` | ||
% mtuprobe wikipedia.org | ||
Max packet size: 1464 | ||
Expected ethernet MTU: 1492 | ||
``` | ||
|
||
You can check out `mtuprobe -h` to get the complete list of options. | ||
|
||
Values are: | ||
|
||
- **Max packet size** — Max packet size specified to `ping`, meaning the | ||
size of the data segment of the ICMP packet | ||
- **Expected ethernet MTU** — That's what the MTU should be if you're | ||
transmitting over Ethernet and the header sizes are what is expected from | ||
such a setup. This should apply most of the time but surely some weird | ||
network setups could violate this. |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
[tool.poetry] | ||
name = "mtuprobe" | ||
version = "0.1.0" | ||
description = "A tool to find out maximum MTU size on an IPv4 path" | ||
authors = ["Rémy Sanchez <[email protected]>"] | ||
license = "WTFPL" | ||
readme = "README.md" | ||
homepage = "https://github.com/Xowap/mtuprobe" | ||
repository = "https://github.com/Xowap/mtuprobe" | ||
documentation = "https://github.com/Xowap/mtuprobe" | ||
|
||
[tool.poetry.scripts] | ||
mtuprobe = 'mtuprobe.__main__:__main__' | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.8" | ||
|
||
[tool.poetry.dev-dependencies] | ||
isort = "^5.6.4" | ||
black = "^20.8b1" | ||
|
||
[build-system] | ||
requires = ["poetry>=0.12"] | ||
build-backend = "poetry.masonry.api" |
Empty file.
Oops, something went wrong.