rfc3596.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 1996-2023 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_RFC3596_H
10#define SQUID_RFC3596_H
11
12/* RFC 3596 extends RFC 1035 */
13#include "dns/rfc1035.h"
14
15SQUIDCEXTERN ssize_t rfc3596BuildAQuery(const char *hostname,
16 char *buf,
17 size_t sz,
18 unsigned short qid,
19 rfc1035_query * query,
20 ssize_t edns_sz);
21
22SQUIDCEXTERN ssize_t rfc3596BuildAAAAQuery(const char *hostname,
23 char *buf,
24 size_t sz,
25 unsigned short qid,
26 rfc1035_query * query,
27 ssize_t edns_sz);
28
29SQUIDCEXTERN ssize_t rfc3596BuildPTRQuery4(const struct in_addr,
30 char *buf,
31 size_t sz,
32 unsigned short qid,
33 rfc1035_query * query,
34 ssize_t edns_sz);
35
36SQUIDCEXTERN ssize_t rfc3596BuildPTRQuery6(const struct in6_addr,
37 char *buf,
38 size_t sz,
39 unsigned short qid,
40 rfc1035_query * query,
41 ssize_t edns_sz);
42
43/* RFC3596 library implements RFC1035 generic host interface */
44SQUIDCEXTERN ssize_t rfc3596BuildHostQuery(const char *hostname,
45 char *buf,
46 size_t sz,
47 unsigned short qid,
48 rfc1035_query * query,
49 int qtype,
50 ssize_t edns_sz);
51
52/* RFC3596 section 2.1 defines new RR type AAAA as 28 */
53#define RFC1035_TYPE_AAAA 28
54
55#endif /* SQUID_RFC3596_H */
56
SQUIDCEXTERN ssize_t rfc3596BuildPTRQuery6(const struct in6_addr, char *buf, size_t sz, unsigned short qid, rfc1035_query *query, ssize_t edns_sz)
Definition: rfc3596.cc:140
SQUIDCEXTERN ssize_t rfc3596BuildAQuery(const char *hostname, char *buf, size_t sz, unsigned short qid, rfc1035_query *query, ssize_t edns_sz)
Definition: rfc3596.cc:96
SQUIDCEXTERN ssize_t rfc3596BuildHostQuery(const char *hostname, char *buf, size_t sz, unsigned short qid, rfc1035_query *query, int qtype, ssize_t edns_sz)
Definition: rfc3596.cc:57
SQUIDCEXTERN ssize_t rfc3596BuildAAAAQuery(const char *hostname, char *buf, size_t sz, unsigned short qid, rfc1035_query *query, ssize_t edns_sz)
Definition: rfc3596.cc:110
SQUIDCEXTERN ssize_t rfc3596BuildPTRQuery4(const struct in_addr, char *buf, size_t sz, unsigned short qid, rfc1035_query *query, ssize_t edns_sz)
Definition: rfc3596.cc:124
#define SQUIDCEXTERN
Definition: squid.h:21

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors