public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
8f6bbf65e2185552932e59c9ea715246155dccea blob 1425 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
 
/* SPDX-License-Identifier: GPL-2.0-or-later
 * Copyright Red Hat
 * Author: David Gibson <david@gibson.dropbear.id.au>
 *
 * Definitions and functions used by both client and server of the configuration
 * update protocol (pesto).
 */

#ifndef PESTO_H
#define PESTO_H

#include <assert.h>
#include <stdint.h>

#define PESTO_SERVER_MAGIC	"pesto:s"

/* Version 0 is reserved for unreleased / unsupported experimental versions */
#define PESTO_PROTOCOL_VERSION	0

/* Maxmimum size of a pif name, including \0 */
#define	PIF_NAME_SIZE	(128)
#define PIF_NONE	0

/**
 * struct pesto_hello - Server introduction message
 * @magic:		PESTO_SERVER_MAGIC
 * @version:		Version number
 * @pif_name_size:	Server's value for PIF_NAME_SIZE
 * @ifnamsiz:		Server's value for IFNAMSIZ
 */
struct pesto_hello {
	char magic[8];
	uint32_t version;
	uint32_t pif_name_size;
	uint32_t ifnamsiz;
} __attribute__ ((__packed__));

static_assert(sizeof(PESTO_SERVER_MAGIC)
	      == sizeof(((struct pesto_hello *)0)->magic),
	      "PESTO_SERVER_MAGIC has wrong size");

/**
 * struct pesto_pif_info - Message with basic metadata about a pif
 * @resv_:	Alignment gap (must be 0)
 * @name:	Name (\0 terminated)
 * @caps:	Forwarding capabilities for this pif
 * @count:	Number of forwarding rules for this pif
 */
struct pesto_pif_info {
	char name[PIF_NAME_SIZE];
	uint32_t caps;
	uint32_t count;
} __attribute__ ((__packed__));

#endif /* PESTO_H */
debug log:

solving 8f6bbf65 ...
found 8f6bbf65 in https://archives.passt.top/passt-dev/20260421062516.2601204-16-david@gibson.dropbear.id.au/ ||
	https://archives.passt.top/passt-dev/20260421044217.2500314-15-david@gibson.dropbear.id.au/
found ac4c2b58 in https://archives.passt.top/passt-dev/20260421044217.2500314-12-david@gibson.dropbear.id.au/ ||
	https://archives.passt.top/passt-dev/20260421062516.2601204-13-david@gibson.dropbear.id.au/
found 92d4df3a in https://archives.passt.top/passt-dev/20260319061157.1983818-8-david@gibson.dropbear.id.au/ ||
	https://archives.passt.top/passt-dev/20260323073732.3158468-14-david@gibson.dropbear.id.au/ ||
	https://archives.passt.top/passt-dev/20260421044217.2500314-11-david@gibson.dropbear.id.au/ ||
	https://archives.passt.top/passt-dev/20260421062516.2601204-12-david@gibson.dropbear.id.au/ ||
	https://archives.passt.top/passt-dev/20260316054629.239002-6-david@gibson.dropbear.id.au/

applying [1/9] https://archives.passt.top/passt-dev/20260319061157.1983818-8-david@gibson.dropbear.id.au/
diff --git a/pesto.h b/pesto.h
new file mode 100644
index 00000000..92d4df3a

Checking patch pesto.h...
Applied patch pesto.h cleanly.

skipping https://archives.passt.top/passt-dev/20260323073732.3158468-14-david@gibson.dropbear.id.au/ for 92d4df3a
skipping https://archives.passt.top/passt-dev/20260421044217.2500314-11-david@gibson.dropbear.id.au/ for 92d4df3a
skipping https://archives.passt.top/passt-dev/20260421062516.2601204-12-david@gibson.dropbear.id.au/ for 92d4df3a
skipping https://archives.passt.top/passt-dev/20260316054629.239002-6-david@gibson.dropbear.id.au/ for 92d4df3a
index at:
100644 92d4df3a81ab32a495d8e2edea4570d29558d39b	pesto.h

applying [2/9] https://archives.passt.top/passt-dev/20260421044217.2500314-12-david@gibson.dropbear.id.au/
diff --git a/pesto.h b/pesto.h
index 92d4df3a..ac4c2b58 100644

Checking patch pesto.h...
Applied patch pesto.h cleanly.

skipping https://archives.passt.top/passt-dev/20260421062516.2601204-13-david@gibson.dropbear.id.au/ for ac4c2b58
index at:
100644 ac4c2b58257ea68ffd674457aff8f123372711dd	pesto.h

applying [3/9] https://archives.passt.top/passt-dev/20260421062516.2601204-16-david@gibson.dropbear.id.au/
diff --git a/pesto.h b/pesto.h
index ac4c2b58..8f6bbf65 100644

Checking patch pesto.h...
Applied patch pesto.h cleanly.

skipping https://archives.passt.top/passt-dev/20260421044217.2500314-15-david@gibson.dropbear.id.au/ for 8f6bbf65
index at:
100644 8f6bbf65e2185552932e59c9ea715246155dccea	pesto.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).