From 97237c8178b8375cf1e51341ea32e517618558c0 Mon Sep 17 00:00:00 2001 From: Cheeze-It <16260577+Cheeze-It@users.noreply.github.com> Date: Thu, 17 Jun 2021 22:04:23 -0600 Subject: 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 (cherry picked from commit c9dbc42bab13d70d22ca55794e4b89cac53adc86) --- src/op_mode/ping.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/op_mode') 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': '', '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 -- cgit v1.2.3