public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
da9c2dfc9e207604de2aa980b96c1ff3b3fc5f1b blob 1324 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
31
32
33
34
35
36
37
38
 
/* SPDX-License-Identifier: GPL-2.0-or-later
 * Copyright (c) 2021 Red Hat GmbH
 * Author: Stefano Brivio <sbrivio@redhat.com>
 */

#ifndef UDP_H
#define UDP_H

void udp_listen_sock_handler(const struct ctx *c, union epoll_ref ref,
			     uint32_t events, const struct timespec *now);
void udp_sock_handler(const struct ctx *c, union epoll_ref ref,
		      uint32_t events, const struct timespec *now);
int udp_tap_handler(const struct ctx *c, uint8_t pif,
		    sa_family_t af, const void *saddr, const void *daddr,
		    uint8_t ttl, const struct pool *p, int idx,
		    const struct timespec *now);
int udp_listen(const struct ctx *c, uint8_t pif, unsigned rule,
	       const union inany_addr *addr, const char *ifname, in_port_t port);
int udp_init(struct ctx *c);
void udp_update_l2_buf(const unsigned char *eth_d);

/**
 * struct udp_ctx - Execution context for UDP
 * @fwd_in:		Port forwarding configuration for inbound packets
 * @fwd_out:		Port forwarding configuration for outbound packets
 * @timer_run:		Timestamp of most recent timer run
 * @timeout:		Timeout for unidirectional flows (in s)
 * @stream_timeout:	Timeout for stream-like flows (in s)
 */
struct udp_ctx {
	struct fwd_ports fwd_in;
	struct fwd_ports fwd_out;
	struct timespec timer_run;
	int timeout;
	int stream_timeout;
};

#endif /* UDP_H */
debug log:

solving da9c2df ...
found da9c2df in https://archives.passt.top/passt-dev/20260212080414.61889-1-yuhuang@redhat.com/ ||
	https://archives.passt.top/passt-dev/20260213095651.155596-1-yuhuang@redhat.com/ ||
	https://archives.passt.top/passt-dev/20260214073136.45022-1-yuhuang@redhat.com/
found 2b91d72 in https://passt.top/passt
preparing index
index prepared:
100644 2b91d7286246870c538380e45e3dd0aedffccf1f	udp.h

applying [1/3] https://archives.passt.top/passt-dev/20260212080414.61889-1-yuhuang@redhat.com/
diff --git a/udp.h b/udp.h
index 2b91d72..da9c2df 100644

Checking patch udp.h...
Applied patch udp.h cleanly.

skipping https://archives.passt.top/passt-dev/20260213095651.155596-1-yuhuang@redhat.com/ for da9c2df
skipping https://archives.passt.top/passt-dev/20260214073136.45022-1-yuhuang@redhat.com/ for da9c2df
index at:
100644 da9c2dfc9e207604de2aa980b96c1ff3b3fc5f1b	udp.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).