smbd: Don't mask open error if fstatat() fails
[Samba.git] / libcli / dns / dns.h
blob34a6cf5aa9487deb1da502fe21b402fb0bff7408
1 /*
2 * Unix SMB/CIFS implementation.
3 * Internal DNS query structures
4 * Copyright (C) Gerald Carter 2006.
5 * Copyright (C) Andrew Bartlett 2011
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 3 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, see <http://www.gnu.org/licenses/>.
21 /* DNS query section in replies */
23 #ifndef __LIBCLI_DNS_DNS_H__
24 #define __LIBCLI_DNS_DNS_H__
26 #include "replace.h"
27 #include "system/network.h"
29 struct dns_query {
30 const char *hostname;
31 uint16_t type;
32 uint16_t in_class;
35 /* DNS RR record in reply */
37 struct dns_rr {
38 const char *hostname;
39 uint16_t type;
40 uint16_t in_class;
41 uint32_t ttl;
42 uint16_t rdatalen;
43 uint8_t *rdata;
46 /* SRV records */
48 struct dns_rr_srv {
49 const char *hostname;
50 uint16_t priority;
51 uint16_t weight;
52 uint16_t port;
53 size_t num_ips;
54 struct sockaddr_storage *ss_s; /* support multi-homed hosts */
57 /* NS records */
59 struct dns_rr_ns {
60 const char *hostname;
61 struct sockaddr_storage ss;
64 #endif