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

#ifndef DHCP_H
#define DHCP_H

/**
 * enum dhcp_opt_type - DHCP option value types per RFC 2132
 */
enum dhcp_opt_type {
	DHCP_OPT_NONE,
	DHCP_OPT_STR,
	DHCP_OPT_IPV4,
	DHCP_OPT_IPV4_LIST,
	DHCP_OPT_UINT8,
	DHCP_OPT_UINT16,
	DHCP_OPT_UINT32,
	DHCP_OPT_ROUTES,
};

int dhcp(const struct ctx *c, struct iov_tail *data);
void dhcp_init(void);
int dhcp_opt_parse(uint8_t code, const char *str, uint8_t *buf, size_t buf_len);

#endif /* DHCP_H */
debug log:

solving 01b2290 ...
found 01b2290 in https://archives.passt.top/passt-dev/20260518132002.418296-4-anskuma@redhat.com/
found cd50c99 in https://passt.top/passt
preparing index
index prepared:
100644 cd50c99b88566dd5ca09fee36d24aa2780a109fe	dhcp.h

applying [1/1] https://archives.passt.top/passt-dev/20260518132002.418296-4-anskuma@redhat.com/
diff --git a/dhcp.h b/dhcp.h
index cd50c99..01b2290 100644

Checking patch dhcp.h...
Applied patch dhcp.h cleanly.

index at:
100644 01b2290380b57e3682c414fddc6f82c52d500173	dhcp.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).