public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
fba5ef33cf992906b0202b702f1ddf9f8cdce77c blob 1100 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
39
 
/* SPDX-License-Identifier: GPL-2.0-or-later
 * Copyright (c) 2021 Red Hat GmbH
 * Author: Stefano Brivio <sbrivio@redhat.com>
 */

#ifndef UDP_INTERNAL_H
#define UDP_INTERNAL_H

#include <netinet/in.h>
#include <netinet/udp.h>

#include "tap.h" /* needed by udp_meta_t */

/**
 * struct udp_payload_t - UDP header and data for inbound messages
 * @uh:		UDP header
 * @data:	UDP data
 */
struct udp_payload_t {
	struct udphdr uh;
	char data[USHRT_MAX - sizeof(struct udphdr)];
#ifdef __AVX2__
} __attribute__ ((packed, aligned(32)));
#else
} __attribute__ ((packed, aligned(__alignof__(unsigned int))));
#endif

size_t udp_update_hdr4(struct iphdr *ip4h, struct udphdr *uh,
		       struct iov_tail *payload,
		       const struct flowside *toside,
		       bool no_udp_csum);
size_t udp_update_hdr6(struct ipv6hdr *ip6h, struct udphdr *uh,
		       struct iov_tail *payload,
		       const struct flowside *toside,
		       bool no_udp_csum);
void udp_sock_fwd(const struct ctx *c, int s, int rule_hint,
		  uint8_t frompif, in_port_t port, const struct timespec *now);

#endif /* UDP_INTERNAL_H */
debug log:

solving fba5ef33cf99 ...
found fba5ef33cf99 in https://archives.passt.top/passt-dev/20260309094744.1907754-8-lvivier@redhat.com/
found 64e457748324 in https://passt.top/passt
preparing index
index prepared:
100644 64e4577483242b8a169db5dd786fc5bb7b3ae0fc	udp_internal.h

applying [1/1] https://archives.passt.top/passt-dev/20260309094744.1907754-8-lvivier@redhat.com/
diff --git a/udp_internal.h b/udp_internal.h
index 64e457748324..fba5ef33cf99 100644

Checking patch udp_internal.h...
Applied patch udp_internal.h cleanly.

index at:
100644 fba5ef33cf992906b0202b702f1ddf9f8cdce77c	udp_internal.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).