resolv: Introduce struct resolv_conf with extended resolver state
commitf30a54b21b83f254533c59ca72ad17af5249c6be
authorFlorian Weimer <fweimer@redhat.com>
Mon, 3 Jul 2017 18:31:23 +0000 (3 20:31 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Mon, 3 Jul 2017 18:57:28 +0000 (3 20:57 +0200)
tree174c6e8b77d8fc1514f4108e3290b91d19d838a6
parent352f4ff9a268b81ef5d4b2413f582565806e4790
resolv: Introduce struct resolv_conf with extended resolver state

This change provides additional resolver configuration state which
is not exposed through the _res ABI.  It reuses the existing
initstamp field in the supposedly-private part of _res.  Some effort
is undertaken to avoid memory safety issues introduced by applications
which directly patch the _res object.

With this commit, only the initstamp field is moved into struct
resolv_conf.  Additional members will be added later, eventually
migrating the entire resolver configuration.
ChangeLog
resolv/Makefile
resolv/bits/types/res_state.h
resolv/res-close.c
resolv/res_init.c
resolv/resolv_conf.c [new file with mode: 0644]
resolv/resolv_conf.h [new file with mode: 0644]
resolv/resolv_context.c
resolv/resolv_context.h