dnsproxy: Save DNS packet in cache always in TCP format
authorJukka Rissanen <jukka.rissanen@linux.intel.com>
Wed, 20 Jun 2012 10:38:35 +0000 (13:38 +0300)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Wed, 20 Jun 2012 11:11:00 +0000 (14:11 +0300)
commit28c0f56aaf3f74c78f16b9443de4333ffdc398d6
tree325bf3e675d7c6fa4e13f822f3b32a2bb3eaacaa
parent14ca0eb028af61717f5a5fbfef2d97d60f8699e6
dnsproxy: Save DNS packet in cache always in TCP format

The cached DNS packet will always contain two prefix bytes.
For UDP we do not send these two extra bytes. This way we do
not need to know if the cached message is from UDP or TCP query.
src/dnsproxy.c