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 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.
18 * @brief IPC messages between DNS API and DNS service
19 * @author Christian Grothoff
24 GNUNET_NETWORK_STRUCT_BEGIN
28 * Message from client to DNS service to register itself.
30 struct GNUNET_DNS_Register
33 * Header of type #GNUNET_MESSAGE_TYPE_DNS_CLIENT_INIT
35 struct GNUNET_MessageHeader header;
38 * NBO encoding of `enum GNUNET_DNS_Flags` for the client.
40 uint32_t flags GNUNET_PACKED;
45 * Message from DNS service to client: please handle a request.
47 struct GNUNET_DNS_Request
50 * Header of type #GNUNET_MESSAGE_TYPE_DNS_CLIENT_REQUEST
52 struct GNUNET_MessageHeader header;
57 uint32_t reserved GNUNET_PACKED;
62 uint64_t request_id GNUNET_PACKED;
64 /* followed by original DNS request (without UDP header) */
70 * Message from client to DNS service: here is my reply.
72 struct GNUNET_DNS_Response
75 * Header of type #GNUNET_MESSAGE_TYPE_DNS_CLIENT_RESPONSE
77 struct GNUNET_MessageHeader header;
80 * Zero to drop, 1 for no change (no payload), 2 for update (message has payload).
82 uint32_t drop_flag GNUNET_PACKED;
87 uint64_t request_id GNUNET_PACKED;
89 /* followed by original DNS request (without UDP header) */
94 GNUNET_NETWORK_STRUCT_END