Squid Web Cache master
Loading...
Searching...
No Matches
rfc3596.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 1996-2025 The Squid Software Foundation and contributors
3 *
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
7 */
8
9#ifndef SQUID_SRC_DNS_RFC3596_H
10#define SQUID_SRC_DNS_RFC3596_H
11
12/* RFC 3596 extends RFC 1035 */
13#include "dns/rfc1035.h"
14
15ssize_t rfc3596BuildAQuery(const char *hostname,
16 char *buf,
17 size_t sz,
18 unsigned short qid,
20
21ssize_t rfc3596BuildAAAAQuery(const char *hostname,
22 char *buf,
23 size_t sz,
24 unsigned short qid,
26
27ssize_t rfc3596BuildPTRQuery4(const struct in_addr,
28 char *buf,
29 size_t sz,
30 unsigned short qid,
32
33ssize_t rfc3596BuildPTRQuery6(const struct in6_addr,
34 char *buf,
35 size_t sz,
36 unsigned short qid,
38
39/* RFC3596 library implements RFC1035 generic host interface */
40ssize_t rfc3596BuildHostQuery(const char *hostname,
41 char *buf,
42 size_t sz,
43 unsigned short qid,
44 rfc1035_query * query,
45 int qtype);
46
47/* RFC3596 section 2.1 defines new RR type AAAA as 28 */
48#define RFC1035_TYPE_AAAA 28
49
50#endif /* SQUID_SRC_DNS_RFC3596_H */
51
ssize_t rfc3596BuildPTRQuery4(const struct in_addr, char *buf, size_t sz, unsigned short qid, rfc1035_query *)
Definition rfc3596.cc:128
ssize_t rfc3596BuildHostQuery(const char *hostname, char *buf, size_t sz, unsigned short qid, rfc1035_query *query, int qtype)
Definition rfc3596.cc:58
ssize_t rfc3596BuildAQuery(const char *hostname, char *buf, size_t sz, unsigned short qid, rfc1035_query *)
Definition rfc3596.cc:100
ssize_t rfc3596BuildAAAAQuery(const char *hostname, char *buf, size_t sz, unsigned short qid, rfc1035_query *)
Definition rfc3596.cc:114
ssize_t rfc3596BuildPTRQuery6(const struct in6_addr, char *buf, size_t sz, unsigned short qid, rfc1035_query *)
Definition rfc3596.cc:144