public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
c749038cb7a971ca2db973b033f32a016343a0c9 blob 976 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
 
/* SPDX-License-Identifier: GPL-2.0-or-later
 * Copyright (c) 2021 Red Hat GmbH
 * Author: Stefano Brivio <sbrivio@redhat.com>
 */

#ifndef TCP_BUF_H
#define TCP_BUF_H

#include "tcp_conn.h"
#include "tcp_internal.h"

void tcp_sock_iov_init();
void tcp_payload_flush(const struct ctx *c, const struct timespec *now);
int tcp_buf_data_from_sock(const struct ctx *c, struct tcp_tap_conn *conn,
			   uint32_t already_sent, const struct timespec *now);
int tcp_buf_send_flag(const struct ctx *c, struct tcp_tap_conn *conn, int flags,
		      const struct timespec *now);

#define TCP_FRAMES_MEM			128
#define TCP_FRAMES							   \
(c->mode == MODE_PASTA ? 1 : TCP_FRAMES_MEM)

extern struct tap_hdr tcp_payload_tap_hdr[TCP_FRAMES_MEM];
extern struct ethhdr		tcp_eth_hdr[TCP_FRAMES_MEM];
extern struct tcp_payload_t	tcp_payload[TCP_FRAMES_MEM];

extern struct iphdr		tcp4_payload_ip[TCP_FRAMES_MEM];
extern struct ipv6hdr		tcp6_payload_ip[TCP_FRAMES_MEM];

#endif  /*TCP_BUF_H */
debug log:

solving c749038 ...
found c749038 in https://archives.passt.top/passt-dev/20260802132155.870796-3-aerosound161@gmail.com/
found 5d31cea in https://passt.top/passt
preparing index
index prepared:
100644 5d31cea6d6881b58fddc0e2bc5f8489552e382d6	tcp_buf.h

applying [1/1] https://archives.passt.top/passt-dev/20260802132155.870796-3-aerosound161@gmail.com/
diff --git a/tcp_buf.h b/tcp_buf.h
index 5d31cea..c749038 100644

Checking patch tcp_buf.h...
Applied patch tcp_buf.h cleanly.

index at:
100644 c749038cb7a971ca2db973b033f32a016343a0c9	tcp_buf.h

Code repositories for project(s) associated with this public inbox

	https://passt.top/passt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for IMAP folder(s).