diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2024-05-01 16:53:51 +1000 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2024-05-02 16:13:29 +0200 |
commit | 40f8b2976ab09c77b14238d6eabaa7793d5365e4 (patch) | |
tree | 8e9c4ea72be30c6727da572759e377ea9c494b1f /tap.c | |
parent | 68d1b0a1528d6efd0d94afa43e9fc4b4857ca694 (diff) | |
download | passt-40f8b2976ab09c77b14238d6eabaa7793d5365e4.tar passt-40f8b2976ab09c77b14238d6eabaa7793d5365e4.tar.gz passt-40f8b2976ab09c77b14238d6eabaa7793d5365e4.tar.bz2 passt-40f8b2976ab09c77b14238d6eabaa7793d5365e4.tar.lz passt-40f8b2976ab09c77b14238d6eabaa7793d5365e4.tar.xz passt-40f8b2976ab09c77b14238d6eabaa7793d5365e4.tar.zst passt-40f8b2976ab09c77b14238d6eabaa7793d5365e4.zip |
tap, tcp: (Re-)abstract TAP specific header handling
Recent changes to the TCP code (reworking of the buffer handling) have
meant that it now (again) deals explicitly with the MODE_PASST specific
vnet_len field, instead of using the (partial) abstractions provided by the
tap layer.
The abstractions we had don't work for the new TCP structure, so make some
new ones that do: tap_hdr_iov() which constructs an iovec suitable for
containing (just) the TAP specific header and tap_hdr_update() which
updates it as necessary per-packet.
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