1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
2 #ifndef foosddhcpduidhfoo
3 #define foosddhcpduidhfoo
6 systemd is free software; you can redistribute it and/or modify it
7 under the terms of the GNU Lesser General Public License as published by
8 the Free Software Foundation; either version 2.1 of the License, or
9 (at your option) any later version.
11 systemd is distributed in the hope that it will be useful, but
12 WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Lesser General Public License for more details.
16 You should have received a copy of the GNU Lesser General Public License
17 along with systemd; If not, see <https://www.gnu.org/licenses/>.
21 #include <sys/types.h>
23 #include "_sd-common.h"
25 _SD_BEGIN_DECLARATIONS
;
34 typedef struct sd_dhcp_duid sd_dhcp_duid
;
36 int sd_dhcp_duid_clear(sd_dhcp_duid
*duid
);
38 int sd_dhcp_duid_is_set(const sd_dhcp_duid
*duid
);
40 int sd_dhcp_duid_get(const sd_dhcp_duid
*duid
, uint16_t *ret_type
, const void **ret_data
, size_t *ret_size
);
41 int sd_dhcp_duid_get_raw(const sd_dhcp_duid
*duid
, const void **ret_data
, size_t *ret_size
);
48 int sd_dhcp_duid_set_raw(
52 int sd_dhcp_duid_set_llt(
58 int sd_dhcp_duid_set_ll(
63 int sd_dhcp_duid_set_en(sd_dhcp_duid
*duid
);
64 int sd_dhcp_duid_set_uuid(sd_dhcp_duid
*duid
);
66 int sd_dhcp_duid_to_string(const sd_dhcp_duid
*duid
, char **ret
);