diff options
author | Cheeze-It <16260577+Cheeze-It@users.noreply.github.com> | 2021-06-17 22:04:23 -0600 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-06-18 07:31:17 +0200 |
commit | 97237c8178b8375cf1e51341ea32e517618558c0 (patch) | |
tree | 3031da34e2f3db9fc7738903ac236c61900a3a20 /src | |
parent | 39f95fe210949b919d33cb627fc8ed5aa83e6b24 (diff) | |
download | vyos-1x-97237c8178b8375cf1e51341ea32e517618558c0.tar.gz vyos-1x-97237c8178b8375cf1e51341ea32e517618558c0.zip |
ping: T3634: Adding do not fragment to Ping (#885)
In this commit we add the do not fragment capability
for ping commands.
Co-authored-by: Cheeze_It <none@none.com>
(cherry picked from commit c9dbc42bab13d70d22ca55794e4b89cac53adc86)
Diffstat (limited to 'src')
-rwxr-xr-x | src/op_mode/ping.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/op_mode/ping.py b/src/op_mode/ping.py index 29b430d53..924a889db 100755 --- a/src/op_mode/ping.py +++ b/src/op_mode/ping.py @@ -50,6 +50,11 @@ options = { 'type': '<seconds>', 'help': 'Number of seconds before ping exits' }, + 'do-not-fragment': { + 'ping': '{command} -M dont', + 'type': 'noarg', + 'help': 'Set DF-bit flag to 1 for no fragmentation' + }, 'flood': { 'ping': 'sudo {command} -f', 'type': 'noarg', @@ -227,4 +232,4 @@ if __name__ == '__main__': # print(f'{command} {host}') os.system(f'{command} {host}') - +
\ No newline at end of file |