rwrap: Make the rwrap_fake_* functions only fake RRs
authorJakub Hrozek <jakub.hrozek@gmail.com>
Tue, 18 Nov 2014 10:33:42 +0000 (11:33 +0100)
committerAndreas Schneider <asn@samba.org>
Thu, 27 Nov 2014 14:59:21 +0000 (15:59 +0100)
commit9578af3406df2f03f637fb55b47b4cbd8f7fb577
tree4ab704bef60c6d7616f02c509dd691231eb08b5f
parent00274ffd8e29b42f202ebf7c1e1bce6cd34d9b0f
rwrap: Make the rwrap_fake_* functions only fake RRs

The rwrap_fake_common() function did too much. Remove it and use
separate functions to add fake header and question sections. The
rwrap_fake_$RR functions will receive packet including the header and
question and only add its RR data.

This will allow recursive processing later.

Signed-off-by: Jakub Hrozek <jakub.hrozek@gmail.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
src/resolv_wrapper.c