diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2024-05-01 18:31:10 +1000 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2024-05-02 16:13:52 +0200 |
commit | 1ba76c9e8c14b21d8c2c7cb71abdaa85feb96605 (patch) | |
tree | 29cfaf8d581711fb1d80cf45654bc404d778e89f /contrib/apparmor | |
parent | d4598e1d18ac2b0ff95e34cf788a0fcab98cc405 (diff) | |
download | passt-1ba76c9e8c14b21d8c2c7cb71abdaa85feb96605.tar passt-1ba76c9e8c14b21d8c2c7cb71abdaa85feb96605.tar.gz passt-1ba76c9e8c14b21d8c2c7cb71abdaa85feb96605.tar.bz2 passt-1ba76c9e8c14b21d8c2c7cb71abdaa85feb96605.tar.lz passt-1ba76c9e8c14b21d8c2c7cb71abdaa85feb96605.tar.xz passt-1ba76c9e8c14b21d8c2c7cb71abdaa85feb96605.tar.zst passt-1ba76c9e8c14b21d8c2c7cb71abdaa85feb96605.zip |
udp: Single buffer for IPv4, IPv6 headers and metadata
Currently we have separate arrays for IPv4 and IPv6 which contain the
headers for guest-bound packets, and also the originating socket address.
We can combine these into a single array of "metadata" structures with
space for both pre-cooked IPv4 and IPv6 headers, as well as shared space
for the tap specific header and socket address (using sockaddr_inany).
Because we're using IOVs to separately address the pieces of each frame,
these structures don't need to be packed to keep the headers contiguous
so we can more naturally arrange for the alignment we want.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'contrib/apparmor')
0 files changed, 0 insertions, 0 deletions