diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2024-03-06 16:34:27 +1100 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2024-03-13 14:37:21 +0100 |
commit | ae69838db0091441ce1dd52314ffb20b5472659f (patch) | |
tree | 782585f19e1fd8b7cd90e64c8fb43b95ee6c99d7 /tap.c | |
parent | b0419d150ac9d10b53ebbed518f67f2c10d22ad0 (diff) | |
download | passt-ae69838db0091441ce1dd52314ffb20b5472659f.tar passt-ae69838db0091441ce1dd52314ffb20b5472659f.tar.gz passt-ae69838db0091441ce1dd52314ffb20b5472659f.tar.bz2 passt-ae69838db0091441ce1dd52314ffb20b5472659f.tar.lz passt-ae69838db0091441ce1dd52314ffb20b5472659f.tar.xz passt-ae69838db0091441ce1dd52314ffb20b5472659f.tar.zst passt-ae69838db0091441ce1dd52314ffb20b5472659f.zip |
udp: Avoid unnecessary pointer in udp_update_hdr4()
We carry around the source address as a pointer to a constant struct
in_addr. But it's silly to carry around a 4 or 8 byte pointer to a 4 byte
IPv4 address. Just copy the IPv4 address around by value.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'tap.c')
0 files changed, 0 insertions, 0 deletions