diff options
| author | David Gibson <david@gibson.dropbear.id.au> | 2026-05-03 23:55:55 +0200 |
|---|---|---|
| committer | Stefano Brivio <sbrivio@redhat.com> | 2026-05-07 08:06:30 +0200 |
| commit | c9f7ed120500c630e74d1c77d2cdd670eba68368 (patch) | |
| tree | 40c06d860fca6876af970d6196a322716265674d /test | |
| parent | ba3047a959a18aca86d641de3625f2f1e9bcb4d2 (diff) | |
| download | passt-c9f7ed120500c630e74d1c77d2cdd670eba68368.tar passt-c9f7ed120500c630e74d1c77d2cdd670eba68368.tar.gz passt-c9f7ed120500c630e74d1c77d2cdd670eba68368.tar.bz2 passt-c9f7ed120500c630e74d1c77d2cdd670eba68368.tar.lz passt-c9f7ed120500c630e74d1c77d2cdd670eba68368.tar.xz passt-c9f7ed120500c630e74d1c77d2cdd670eba68368.tar.zst passt-c9f7ed120500c630e74d1c77d2cdd670eba68368.zip | |
ip: Prepare ip.[ch] for sharing with pesto tool
Most things in ip.[ch] related purely to IP addresses and headers with
no dependency on other passt/pasta internals. A number of these will be
useful to re-use in pesto. The exception is ipv6_l4hdr() which uses
iov_tail.
The only caller of this is in tap.c, so move the function there. Along
with moving the constant byteswapping functions to common.h, that lets
ip.[ch] to be linked into pesto as well as passt/pasta.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Laurent Vivier <lvivier@redhat.com>
[sbrivio: Dropped duplicate definition of __bswap_constant_32() while
at it, reported by Laurent]
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions
