diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2024-03-06 16:34:25 +1100 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2024-03-13 14:37:17 +0100 |
commit | 8a842e03cdc1e841b523f2d408445b1220b3a1ab (patch) | |
tree | 6b81fcb66cc6070f5e633db8e61a1b6db074002b /tap.c | |
parent | 76571ae8691dbba472e4330eea9a1c4b0ee3fdb0 (diff) | |
download | passt-8a842e03cdc1e841b523f2d408445b1220b3a1ab.tar passt-8a842e03cdc1e841b523f2d408445b1220b3a1ab.tar.gz passt-8a842e03cdc1e841b523f2d408445b1220b3a1ab.tar.bz2 passt-8a842e03cdc1e841b523f2d408445b1220b3a1ab.tar.lz passt-8a842e03cdc1e841b523f2d408445b1220b3a1ab.tar.xz passt-8a842e03cdc1e841b523f2d408445b1220b3a1ab.tar.zst passt-8a842e03cdc1e841b523f2d408445b1220b3a1ab.zip |
udp: Pass data length explicitly to to udp_update_hdr[46]
These functions take an index to the L2 buffer whose header information to
update. They use that for two things: to locate the buffer pointer itself,
and to retrieve the length of the received message from the paralllel
udp[46]_l2_mh_sock array. The latter is arguably a failure to separate
concerns. Change these functions to explicitly take a buffer pointer and
payload length as parameters.
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