2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-28 21:17:54 +00:00

216 Commits

Author SHA1 Message Date
Andreas Gustafsson
70fcb78509 client->peeraddr_valid could be set even if the peer
address was not valid; socket errors were logged as requests; when a client shut down
due to a fatal I/O error, it failed to log a message to that effect
2001-05-14 21:12:32 +00:00
Andreas Gustafsson
8ea814ce5f If a response was received on port 53 and failed to parse, the server
would respond to the response, potentially causing packet storms.
This bug was introduced on the mainline by the dispatch-bypass changes and
does not affect any released version.
2001-05-09 23:13:03 +00:00
Brian Wellington
92da55299b If a client requests a UDP buffer of less than 512, ignore it. [RT #1197] 2001-04-19 18:29:53 +00:00
Andreas Gustafsson
10a06917a5 not all blackholed UDP datagrams are queries 2001-04-16 22:10:44 +00:00
Brian Wellington
d8ffaef5c2 The blackhole ACL was not properly applied to UDP queries. Also,
blackholing of TCP connections was done later than it should have been.
2001-04-16 21:18:10 +00:00
Brian Wellington
6eccf5bd07 788. [feature] Add the "match-mapped-addresses" options, which
causes IPv6 v4mapped addresses to be treated as
			IPv4 addresses for the purpose of acl matching.
2001-03-26 21:33:07 +00:00
Andreas Gustafsson
4c03e69ab8 781. [func] Avoid error packet loops by dropping duplicate FORMERR
responses. [RT #1006]
2001-03-19 20:52:21 +00:00
Brian Wellington
461260ac15 add casts [RT #1017] 2001-03-12 22:27:15 +00:00
Mark Andrews
55b6243923 776. [func] Improved error reporting in denied messages. [RT #252] 2001-03-11 06:19:39 +00:00
Mark Andrews
0c13f7af64 Document under what conditions client_allocsendbuf() is allowed to return
ISC_R_NOSPACE.  Add an INSIST to catch changes to callers.
2001-03-06 04:18:42 +00:00
Brian Wellington
952a55000a Remove the 4k UDP send buffer from the client object; use an array on the
stack instead.
2001-03-06 01:24:40 +00:00
Brian Wellington
e43b9a2005 move compression context create/delete into the caller of the message
rendering functions.  This reduces the size of the message object.
2001-03-05 21:15:47 +00:00
Brian Wellington
c6f7fb355d update a comment 2001-02-23 22:38:28 +00:00
Andreas Gustafsson
dc9870de55 missed one instance of bug fixed in previous change 2001-02-22 23:39:11 +00:00
Andreas Gustafsson
e672999714 client_create() could return ISC_R_SUCCESS when it failed 2001-02-22 23:16:59 +00:00
Andreas Gustafsson
65a66336a6 redid configuration locking using isc_task_beginexclusive()
and isc_task_endexclusive() instead of a multitude of separate
configuration rwlocks
2001-02-14 03:54:53 +00:00
Andreas Gustafsson
1dd8ee4fd5 fctx_addopt() would leak an rdataset if dns_message_setopt() ever failed;
fixed it by making dns_message_setopt() guarantee to either adopt
or free the rdataset
2001-02-14 02:51:12 +00:00
Brian Wellington
bf5c44f380 ISC_R_INPROGRESS should not be propagated out of client_sendpkg. 2001-02-14 01:46:59 +00:00
Brian Wellington
2d1db4e2c0 Allocate events in the client structure, and use isc_socket_sendto2()
and isc_socket_recv2() for sending and receiving packets.  In the send
case, pass the IMMEDIATE flag to avoid receiving an event on send completion
if possible.
2001-02-12 21:45:37 +00:00
Brian Wellington
2ba06bbf5a cut-and-paste-o 2001-02-12 20:26:11 +00:00
Brian Wellington
319d2971f1 When the client informs the dispatcher of a received response, have the
dispatcher copy the event instead of reusing the original one.
2001-02-10 02:00:11 +00:00
Andreas Gustafsson
a771e5c797 removed outdated comment 2001-02-09 21:25:55 +00:00
Brian Wellington
4239aef2fb client_request was not freeing its event. 2001-02-06 02:43:42 +00:00
Brian Wellington
3d76b54512 Don't create a timer for every incoming query - only create it for updates,
notifies, and recursive queries.
2001-01-29 19:49:52 +00:00
Brian Wellington
35f06ab0e6 Clients now listen on sockets instead of accepting queries from dispatchers.
When a socket is shared by clients and query-source, the client hands off
responses to the dispatcher.
2001-01-27 02:08:07 +00:00
Andreas Gustafsson
40562d7208 comment style 2001-01-23 18:47:33 +00:00
Andreas Gustafsson
96b8d611a7 alphabetized includes 2001-01-22 18:58:36 +00:00
Andreas Gustafsson
bda8d67fd4 race condition [RT #670] 2001-01-16 23:02:58 +00:00
Brian Wellington
499b34cea0 copyright update 2001-01-09 22:01:04 +00:00
Brian Wellington
fff07c1022 665. [bug] Signed responses were not sent when the size of the
TSIG + question exceeded the maximum message size.
                        [RT #628]
2001-01-08 20:36:14 +00:00
Andreas Gustafsson
9de6daa628 use ISC_SOCKADDR_FORMATSIZE 2000-12-19 19:21:39 +00:00
Andreas Gustafsson
4104b26dd7 more DNS_OPT_NEWCODES sanitation 2000-12-02 05:57:16 +00:00
Andreas Gustafsson
294ae26fb3 more DNS_OPT_NEWCODES sanitation 2000-12-02 04:30:08 +00:00
Andreas Gustafsson
5e9ed27c32 added /* DNS_OPT_NEWCODES */ after #endif to support sanitization 2000-12-02 02:07:37 +00:00
Mark Andrews
644ef1972a Add INSIST(client->recursionquota == NULL) in various places to ensure that
we are not leaking.
2000-11-27 23:54:12 +00:00
Andreas Gustafsson
15e74726b3 increased the UDP receive buffer size (and the initial send
buffer size) from 2048 to 4096 bytes
2000-11-16 00:18:13 +00:00
David Lawrence
f769deac29 removed token after an #endif 2000-11-15 23:09:09 +00:00
Andreas Gustafsson
8f086b9df8 when logging incoming messages that fail to match a view,
include the class name in the log message
2000-11-15 19:15:25 +00:00
Brian Wellington
942d1a339b Decompression contexts now take a type instead of the "strict" boolean
value - the type can be "any", "strict", or "none".  This fixes potential
problems with compression in unknown rr types.
2000-11-14 23:29:55 +00:00
Brian Wellington
78d78f05d9 556. [func] The DNSSEC OK bit in the EDNS extended flags
is now implemented.  Responses to queries without
                        this bit set will not contain any DNSSEC records.
2000-11-13 21:34:03 +00:00
Andreas Gustafsson
98f43e2d60 commented the special case TSIG code for update forwarding 2000-11-03 17:39:37 +00:00
Brian Wellington
b209e8ecad The check to see if tsig checking failing with badkey is ok because
the message is an update to be forwarded was wrong.
2000-11-03 04:45:03 +00:00
Brian Wellington
e21d199dca 539. [func] Support the blackhole option. 2000-11-03 02:45:55 +00:00
Mark Andrews
c03bb27f06 532. [func] Implement DNS UPDATE pseudo records using
DNS_RDATA_UPDATE flag.

 531.   [func]          Rdata really should be initalized before being
                        assigned to (dns_rdata_fromwire(), dns_rdata_fromtext(),
                        dns_rdata_clone(), dns_rdata_fromregion()),
                        check that it is.
2000-10-25 04:26:57 +00:00
Andreas Gustafsson
a6216d8691 yes, we do need #include <dns/opt.h> - I was misled by an
incorrect commit message
2000-10-18 22:10:20 +00:00
Andreas Gustafsson
a1d332a959 we don't really need to #include <dns/opt.h>, do we? 2000-10-18 20:56:33 +00:00
Brian Wellington
1417088e3c Updated a comment 2000-10-13 23:38:45 +00:00
Michael Sawyer
94b50bce2b Add zone-specific reload and refresh capability to server and rndc 2000-10-12 21:52:00 +00:00
Michael Sawyer
dc570b92f6 Add support for proposed ZONE and VIEW opt attributes. These are currently
hidden behind #ifdef's, since no OPT code number has yet to be assigned
by the IANA.  They are also not quite complete in all regards; VIEW
options are understood and ignored.  ZONE options are understood and
acted upon, though some of the error cases aren't quite right.

Remove doubled isc_mem_stats in dighost.c

Update todo list.

Change literal 255's to DNS_NAME_MAXWIRE in name.c
2000-10-11 17:44:18 +00:00
Brian Wellington
6850cdd449 508. [func] dns_message_parse() can now do a best-effort
attempt, which should allow dig to print more invalid
                        messages.
2000-10-06 18:58:30 +00:00