rwrap: Make the rwrap_fake_* functions only fake RRs.
authorJakub Hrozek <jakub.hrozek@gmail.com>
Wed, 3 Dec 2014 14:45:06 +0000 (15:45 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 5 Dec 2014 22:32:06 +0000 (23:32 +0100)
commitaa78268a49062d3bd1cb907828a250a01ebbd59a
tree72561637a452081a1d824becd7e50db52fe15f24
parent27828774c3633389b5ce5397d8e25fab2e278624
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>
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
lib/resolv_wrapper/resolv_wrapper.c