public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
155b399566e642c2b3bd185e1dab576379efae0f blob 703 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
 
/* SPDX-License-Identifier: GPL-2.0-or-later
 * Copyright Red Hat
 * Author: David Gibson <david@gibson.dropbear.id.au>
 */

#ifndef PARSE_H
#define PARSE_H

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

/**
 * port_range() - Represents a non-empty range of ports
 * @first:	First port number in the range
 * @last:	Last port number in the range (inclusive)
 *
 * Invariant:	@last >= @first
 */
struct port_range {
	in_port_t first, last;
};

bool parse_literal(const char **cursor, const char *lit);
bool parse_eoi(const char *cursor);
bool parse_unsigned(const char **cursor, int base, unsigned long *valp);
bool parse_port_range(const char **cursor, struct port_range *range);

#endif /* _PARSE_H */
debug log:

solving 155b3995 ...
found 155b3995 in https://archives.passt.top/passt-dev/20260626071003.3472194-8-david@gibson.dropbear.id.au/
found 4f38c28b in https://archives.passt.top/passt-dev/20260626071003.3472194-7-david@gibson.dropbear.id.au/
found eb51a469 in https://archives.passt.top/passt-dev/20260626071003.3472194-4-david@gibson.dropbear.id.au/

applying [1/3] https://archives.passt.top/passt-dev/20260626071003.3472194-4-david@gibson.dropbear.id.au/
diff --git a/parse.h b/parse.h
new file mode 100644
index 00000000..eb51a469


applying [2/3] https://archives.passt.top/passt-dev/20260626071003.3472194-7-david@gibson.dropbear.id.au/
diff --git a/parse.h b/parse.h
index eb51a469..4f38c28b 100644


applying [3/3] https://archives.passt.top/passt-dev/20260626071003.3472194-8-david@gibson.dropbear.id.au/
diff --git a/parse.h b/parse.h
index 4f38c28b..155b3995 100644

Checking patch parse.h...
Applied patch parse.h cleanly.
Checking patch parse.h...
Applied patch parse.h cleanly.
Checking patch parse.h...
Applied patch parse.h cleanly.

index at:
100644 155b399566e642c2b3bd185e1dab576379efae0f	parse.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).