diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2024-07-05 20:44:04 +1000 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2024-07-05 15:26:35 +0200 |
commit | 55aff45bc10354427f77fc7e9bebb71c3a156bcb (patch) | |
tree | e4449baa54833df475b7c1077c6921e77629a242 /test/passt_in_ns/tcp | |
parent | 9f9b15f949e40cc9bacd9c034637f3c2763ac1bb (diff) | |
download | passt-55aff45bc10354427f77fc7e9bebb71c3a156bcb.tar passt-55aff45bc10354427f77fc7e9bebb71c3a156bcb.tar.gz passt-55aff45bc10354427f77fc7e9bebb71c3a156bcb.tar.bz2 passt-55aff45bc10354427f77fc7e9bebb71c3a156bcb.tar.lz passt-55aff45bc10354427f77fc7e9bebb71c3a156bcb.tar.xz passt-55aff45bc10354427f77fc7e9bebb71c3a156bcb.tar.zst passt-55aff45bc10354427f77fc7e9bebb71c3a156bcb.zip |
udp: Unify udp[46]_l2_iov
The only differences between these arrays are that udp4_l2_iov is
pre-initialised to point to the IPv4 ethernet header, and IPv4 per-frame
header and udp6_l2_iov points to the IPv6 versions.
We already have to set up a bunch of headers per-frame, including updating
udp[46]_l2_iov[i][UDP_IOV_PAYLOAD].iov_len. It makes more sense to adjust
the IOV entries to point at the correct headers for the frame than to have
two complete sets of iovecs.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'test/passt_in_ns/tcp')
0 files changed, 0 insertions, 0 deletions