]> git.ipfire.org Git - thirdparty/haproxy.git/commit
DEV: udp: add support for random packet corruption
authorWilly Tarreau <w@1wt.eu>
Wed, 16 Mar 2022 14:07:51 +0000 (15:07 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 16 Mar 2022 14:09:54 +0000 (15:09 +0100)
commit42cef2a18f198f992303d70b51d2e20b50feaf13
tree2f0996c08f401232589b35eff054e027d93403fb
parent04d3c5cd1f5b960cca0c2d38ef547c790cf45920
DEV: udp: add support for random packet corruption

-c sets a corruption rate in % of the packets.
-o sets the start offset of the area to be corrupted.
-w sets the length of the area to be corrupted.

A single byte within that area will then be randomly XORed with a
random value.
dev/udp/udp-perturb.c