2 This file is part of GNUnet
3 Copyright (C) 2012 GNUnet e.V.
5 GNUnet is free software: you can redistribute it and/or modify it
6 under the terms of the GNU Affero General Public License as published
7 by the Free Software Foundation, either version 3 of the License,
8 or (at your option) any later version.
10 GNUnet is distributed in the hope that it will be useful, but
11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Affero General Public License for more details.
15 You should have received a copy of the GNU Affero General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>.
18 SPDX-License-Identifier: AGPL3.0-or-later
23 * @brief IPC messages between DNS API and DNS service
24 * @author Christian Grothoff
29 GNUNET_NETWORK_STRUCT_BEGIN
33 * Message from client to DNS service to register itself.
35 struct GNUNET_DNS_Register
38 * Header of type #GNUNET_MESSAGE_TYPE_DNS_CLIENT_INIT
40 struct GNUNET_MessageHeader header;
43 * NBO encoding of `enum GNUNET_DNS_Flags` for the client.
45 uint32_t flags GNUNET_PACKED;
50 * Message from DNS service to client: please handle a request.
52 struct GNUNET_DNS_Request
55 * Header of type #GNUNET_MESSAGE_TYPE_DNS_CLIENT_REQUEST
57 struct GNUNET_MessageHeader header;
62 uint32_t reserved GNUNET_PACKED;
67 uint64_t request_id GNUNET_PACKED;
69 /* followed by original DNS request (without UDP header) */
74 * Message from client to DNS service: here is my reply.
76 struct GNUNET_DNS_Response
79 * Header of type #GNUNET_MESSAGE_TYPE_DNS_CLIENT_RESPONSE
81 struct GNUNET_MessageHeader header;
84 * Zero to drop, 1 for no change (no payload), 2 for update (message has payload).
86 uint32_t drop_flag GNUNET_PACKED;
91 uint64_t request_id GNUNET_PACKED;
93 /* followed by original DNS request (without UDP header) */
97 GNUNET_NETWORK_STRUCT_END