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/>.
21 * @brief IPC messages between DNS API and DNS service
22 * @author Christian Grothoff
27 GNUNET_NETWORK_STRUCT_BEGIN
31 * Message from client to DNS service to register itself.
33 struct GNUNET_DNS_Register
36 * Header of type #GNUNET_MESSAGE_TYPE_DNS_CLIENT_INIT
38 struct GNUNET_MessageHeader header;
41 * NBO encoding of `enum GNUNET_DNS_Flags` for the client.
43 uint32_t flags GNUNET_PACKED;
48 * Message from DNS service to client: please handle a request.
50 struct GNUNET_DNS_Request
53 * Header of type #GNUNET_MESSAGE_TYPE_DNS_CLIENT_REQUEST
55 struct GNUNET_MessageHeader header;
60 uint32_t reserved GNUNET_PACKED;
65 uint64_t request_id GNUNET_PACKED;
67 /* followed by original DNS request (without UDP header) */
73 * Message from client to DNS service: here is my reply.
75 struct GNUNET_DNS_Response
78 * Header of type #GNUNET_MESSAGE_TYPE_DNS_CLIENT_RESPONSE
80 struct GNUNET_MessageHeader header;
83 * Zero to drop, 1 for no change (no payload), 2 for update (message has payload).
85 uint32_t drop_flag GNUNET_PACKED;
90 uint64_t request_id GNUNET_PACKED;
92 /* followed by original DNS request (without UDP header) */
97 GNUNET_NETWORK_STRUCT_END