2022-03-15 01:07:02 +01:00
|
|
|
/* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
* Copyright (c) 2022 Red Hat GmbH
|
|
|
|
* Author: Stefano Brivio <sbrivio@redhat.com>
|
|
|
|
*/
|
|
|
|
|
2022-03-26 00:05:31 +01:00
|
|
|
#ifndef TCP_SPLICE_H
|
|
|
|
#define TCP_SPLICE_H
|
|
|
|
|
2022-11-17 06:58:51 +01:00
|
|
|
struct tcp_splice_conn;
|
|
|
|
|
2022-11-17 06:58:53 +01:00
|
|
|
void tcp_splice_sock_handler(struct ctx *c, struct tcp_splice_conn *conn,
|
|
|
|
int s, uint32_t events);
|
2022-11-17 06:58:52 +01:00
|
|
|
bool tcp_splice_conn_from_sock(struct ctx *c, union epoll_ref ref,
|
|
|
|
struct tcp_splice_conn *conn, int s,
|
|
|
|
const struct sockaddr *sa);
|
2022-03-15 01:07:02 +01:00
|
|
|
void tcp_splice_init(struct ctx *c);
|
2022-03-26 00:05:31 +01:00
|
|
|
|
|
|
|
#endif /* TCP_SPLICE_H */
|