]> git.ipfire.org Git - thirdparty/haproxy.git/commit
DEV: udp: switch parser to getopt() instead of positional arguments
authorWilly Tarreau <w@1wt.eu>
Wed, 16 Mar 2022 13:49:33 +0000 (14:49 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 16 Mar 2022 14:09:54 +0000 (15:09 +0100)
commit04d3c5cd1f5b960cca0c2d38ef547c790cf45920
treeb4b784a18cb001ce343dc67cae4e407f6c081ddf
parent53fa787a076e6d9de5a3a7eb9a6b1bbc0831723b
DEV: udp: switch parser to getopt() instead of positional arguments

In order to ease addition of new types of perturbations to udp-perturb,
let's first switch to getopt() and get rid of the positional arguments.
The random seed was already a conditional option of the rate which was
a conditional option as well. We add -r and -s for the rate and the
seed, and new options will follow.
dev/udp/udp-perturb.c