about summary refs log tree commit diff
path: root/resolv/resolv-internal.h
Commit message (Collapse)AuthorAgeFilesLines
* resolv: Automatically reload a changed /etc/resolv.conf file [BZ #984]Florian Weimer2017-07-031-3/+0
| | | | | | | | | | This commit enhances the stub resolver to reload the configuration in the per-thread _res object if the /etc/resolv.conf file has changed. The resolver checks whether the application has modified _res and will not overwrite the _res object in that case. The struct resolv_context mechanism is used to check the configuration file only once per name lookup.
* resolv: Introduce struct resolv_context [BZ #21668]Florian Weimer2017-07-031-2/+34
| | | | | | | | | | | | struct resolv_context objects provide a temporary resolver context which does not change during a name lookup operation. Only when the outmost context is created, the stub resolver configuration is verified to be current (at present, only against previous res_init calls). Subsequent attempts to obtain the context will reuse the result of the initial verification operation. struct resolv_context can also be extended in the future to store data which needs to be deallocated during thread cancellation.
* resolv: Clean up declarations of the __res_initstamp variableFlorian Weimer2017-06-231-0/+3
|
* __inet_pton_length: Implement new internal helper functionFlorian Weimer2017-06-211-0/+9
|
* resolv: Reduce EDNS payload size to 1200 bytes [BZ #21361]Florian Weimer2017-04-131-0/+18
| | | | This hardens the stub resolver against fragmentation-based attacks.
* resolv: Remove internal and unused definitions from <resolv.h>Florian Weimer2017-04-131-0/+6
| | | | | | | The RES_F_* constants are only used with the private _res._flags member. RES_EXHAUSTIVE is unused. The removed function declarations refer to functions not actually exported by glibc, so they are unusable by applications.
* Update copyright dates with scripts/update-copyrights.Joseph Myers2017-01-011-1/+1
|
* resolv: Deprecate the "inet6" option and RES_USE_INET6 [BZ #19582]Florian Weimer2016-12-311-0/+35