aboutgitcodebugslistschat
path: root/tap.c
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2024-05-01 16:53:50 +1000
committerStefano Brivio <sbrivio@redhat.com>2024-05-02 16:13:26 +0200
commit68d1b0a1528d6efd0d94afa43e9fc4b4857ca694 (patch)
tree39cf2db4798d377b90d73b3ddd016532cf4a2150 /tap.c
parent5566386f5f1134c86db82464a4c10656ef1e11fe (diff)
downloadpasst-68d1b0a1528d6efd0d94afa43e9fc4b4857ca694.tar
passt-68d1b0a1528d6efd0d94afa43e9fc4b4857ca694.tar.gz
passt-68d1b0a1528d6efd0d94afa43e9fc4b4857ca694.tar.bz2
passt-68d1b0a1528d6efd0d94afa43e9fc4b4857ca694.tar.lz
passt-68d1b0a1528d6efd0d94afa43e9fc4b4857ca694.tar.xz
passt-68d1b0a1528d6efd0d94afa43e9fc4b4857ca694.tar.zst
passt-68d1b0a1528d6efd0d94afa43e9fc4b4857ca694.zip
tcp: Simplify packet length calculation when preparing headers
tcp_fill_headers[46]() compute the L3 packet length from the L4 packet length, then their caller tcp_l2_buf_fill_headers() converts it back to the L4 packet length. We can just use the L4 length throughout. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>eewwee Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'tap.c')
0 files changed, 0 insertions, 0 deletions