diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2024-03-06 16:34:26 +1100 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2024-03-13 14:37:19 +0100 |
commit | b0419d150ac9d10b53ebbed518f67f2c10d22ad0 (patch) | |
tree | d4f3b552d88921d96de5a7eb71bd473e046255d9 /passt.c | |
parent | 8a842e03cdc1e841b523f2d408445b1220b3a1ab (diff) | |
download | passt-b0419d150ac9d10b53ebbed518f67f2c10d22ad0.tar passt-b0419d150ac9d10b53ebbed518f67f2c10d22ad0.tar.gz passt-b0419d150ac9d10b53ebbed518f67f2c10d22ad0.tar.bz2 passt-b0419d150ac9d10b53ebbed518f67f2c10d22ad0.tar.lz passt-b0419d150ac9d10b53ebbed518f67f2c10d22ad0.tar.xz passt-b0419d150ac9d10b53ebbed518f67f2c10d22ad0.tar.zst passt-b0419d150ac9d10b53ebbed518f67f2c10d22ad0.zip |
udp: Re-order udp_update_hdr[46] for clarity and brevity
The order of things in these functions is a bit odd for historical reasons.
We initialise some IP header fields early, the more later after making
some tests. Likewise we declare some variables without initialisation,
but then unconditionally set them to values we could calculate at the
start of the function.
Previous cleanups have removed the reasons for some of these choices, so
reorder for clarity, and where possible move the first assignment into an
initialiser.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'passt.c')
0 files changed, 0 insertions, 0 deletions