aboutgitcodebugslistschat
path: root/tap.h
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2023-01-06 11:43:11 +1100
committerStefano Brivio <sbrivio@redhat.com>2023-01-23 18:54:40 +0100
commit6d011c1faab0d149bb1cbd0e922f26746e50cae6 (patch)
tree3cb5dcdf99e8c85eb6e101c827a8d62bb4242951 /tap.h
parente21ee41ac35a268009ad616df8e9d15d99825050 (diff)
downloadpasst-6d011c1faab0d149bb1cbd0e922f26746e50cae6.tar
passt-6d011c1faab0d149bb1cbd0e922f26746e50cae6.tar.gz
passt-6d011c1faab0d149bb1cbd0e922f26746e50cae6.tar.bz2
passt-6d011c1faab0d149bb1cbd0e922f26746e50cae6.tar.lz
passt-6d011c1faab0d149bb1cbd0e922f26746e50cae6.tar.xz
passt-6d011c1faab0d149bb1cbd0e922f26746e50cae6.tar.zst
passt-6d011c1faab0d149bb1cbd0e922f26746e50cae6.zip
tap, tcp: Move tap send path to tap.c
The functions which do the final steps of sending TCP packets on through the tap interface - tcp_l2_buf_flush*() - no longer have anything that's actually specific to TCP in them, other than comments and names. Move them all to tap.c. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'tap.h')
-rw-r--r--tap.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tap.h b/tap.h
index 674ab5c..ceac890 100644
--- a/tap.h
+++ b/tap.h
@@ -22,6 +22,7 @@ void tap_icmp6_send(const struct ctx *c,
const struct in6_addr *src, const struct in6_addr *dst,
void *in, size_t len);
int tap_send(const struct ctx *c, const void *data, size_t len);
+void tap_send_frames(struct ctx *c, const struct iovec *iov, size_t n);
void tap_handler(struct ctx *c, int fd, uint32_t events,
const struct timespec *now);
void tap_sock_init(struct ctx *c);