2 This file is part of GNUnet
3 (C) 2012 Christian Grothoff (and other contributing authors)
5 GNUnet is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published
7 by the Free Software Foundation; either version 3, or (at your
8 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 General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with GNUnet; see the file COPYING. If not, write to the
17 Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 Boston, MA 02111-1307, USA.
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.
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) */
75 * Message from client to DNS service: here is my reply.
77 struct GNUNET_DNS_Response
80 * Header of type GNUNET_MESSAGE_TYPE_DNS_CLIENT_RESPONSE
82 struct GNUNET_MessageHeader header;
85 * Zero to drop, 1 for no change (no payload), 2 for update (message has payload).
87 uint32_t drop_flag GNUNET_PACKED;
92 uint64_t request_id GNUNET_PACKED;
94 /* followed by original DNS request (without UDP header) */
99 GNUNET_NETWORK_STRUCT_END