diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2023-01-06 11:43:20 +1100 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2023-01-23 18:54:59 +0100 |
commit | 97d1ca2ed64e85a7f4094330d753d1b690374af2 (patch) | |
tree | f42aa3ab84ff23d77ff2addfc8608a57912d7259 /util.h | |
parent | 0fb7b2b9080afd6dc97d2909015a1a6f3e721a73 (diff) | |
download | passt-97d1ca2ed64e85a7f4094330d753d1b690374af2.tar passt-97d1ca2ed64e85a7f4094330d753d1b690374af2.tar.gz passt-97d1ca2ed64e85a7f4094330d753d1b690374af2.tar.bz2 passt-97d1ca2ed64e85a7f4094330d753d1b690374af2.tar.lz passt-97d1ca2ed64e85a7f4094330d753d1b690374af2.tar.xz passt-97d1ca2ed64e85a7f4094330d753d1b690374af2.tar.zst passt-97d1ca2ed64e85a7f4094330d753d1b690374af2.zip |
udp: Use abstracted tap header
Update the UDP code to use the tap layer abstractions for initializing and
updating the L2 and lower headers. This will make adding other tap
backends in future easier.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'util.h')
-rw-r--r-- | util.h | 7 |
1 files changed, 0 insertions, 7 deletions
@@ -102,13 +102,6 @@ int do_clone(int (*fn)(void *), char *stack_area, size_t stack_size, int flags, (void *)(arg)); \ } while (0) -#define L2_BUF_ETH_INIT(proto) \ - { \ - .h_dest = { 0 }, \ - .h_source = { 0 }, \ - .h_proto = htons_constant(proto), \ - } - #define L2_BUF_IP4_INIT(proto) \ { \ .version = 4, \ |