aboutgitcodebugslistschat
path: root/tap.h
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2024-03-06 16:34:26 +1100
committerStefano Brivio <sbrivio@redhat.com>2024-03-13 14:37:19 +0100
commitb0419d150ac9d10b53ebbed518f67f2c10d22ad0 (patch)
treed4f3b552d88921d96de5a7eb71bd473e046255d9 /tap.h
parent8a842e03cdc1e841b523f2d408445b1220b3a1ab (diff)
downloadpasst-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 'tap.h')
0 files changed, 0 insertions, 0 deletions