From 66ad2c24d484eae81a31a2bf74a3986013921c73 Mon Sep 17 00:00:00 2001 From: Ole Tange Date: Thu, 6 Jul 2017 20:06:39 +0200 Subject: [PATCH] duplicate-packet: Initial version. --- Makefile | 9 +++++---- README | 2 ++ duplicate-packets/duplicate-packets | 5 +++++ 3 files changed, 12 insertions(+), 4 deletions(-) create mode 100755 duplicate-packets/duplicate-packets diff --git a/Makefile b/Makefile index 5acad30..f069f20 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,8 @@ -CMD = blink bsearch em encdir field forever G gitnext gitundo \ -goodpasswd histogram mtrr neno off pdfman puniq ramusage rand rclean \ -rn rrm shython sound-reload stdout swapout T timestamp tracefile upsidedown \ -w4it-for-port-open wifi-reload wssh ytv yyyymmdd +CMD = blink bsearch duplicate-packets em encdir field forever G \ +gitnext gitundo goodpasswd histogram mtrr neno off pdfman puniq \ +ramusage rand rclean rn rrm shython sound-reload stdout swapout T \ +timestamp tracefile upsidedown w4it-for-port-open wifi-reload wssh \ +ytv yyyymmdd all: blink/blink.1 bsearch/bsearch.1 encdir/encdir.1 G/G.1 gitnext/gitnext.1 gitundo/gitundo.1 goodpasswd/goodpasswd.1 histogram/histogram.1 neno/neno.1 off/off.1 pdfman/pdfman.1 puniq/puniq.1 rand/rand.1 rn/rn.1 rrm/rrm.1 shython/shython.1 sound-reload/sound-reload.1 stdout/stdout.1 timestamp/timestamp.1 tracefile/tracefile.1 T/T.1 upsidedown/upsidedown.1 wifi-reload/wifi-reload.1 wssh/wssh.1 ytv/ytv.1 yyyymmdd/yyyymmdd.1 diff --git a/README b/README index e95d785..5dfbe14 100644 --- a/README +++ b/README @@ -6,6 +6,8 @@ blink - blink disks in a disk enclosure bsearch - binary search through sorted text files. +duplicate-packets - Duplicate packets on an interface. Useful if wifi is bad. + em - Force emacs to run in terminal. Use xemacs if installed. field - Split on space. Give the given field number. Supports syntax 1-3,6- diff --git a/duplicate-packets/duplicate-packets b/duplicate-packets/duplicate-packets new file mode 100755 index 0000000..1c15dbe --- /dev/null +++ b/duplicate-packets/duplicate-packets @@ -0,0 +1,5 @@ +#!/bin/bash + +IF=wls1 +sudo tc qdisc del dev $IF root netem delay 300 duplicate 40 +sudo tc qdisc add dev $IF root netem delay 300 duplicate 40