Rfc6810 bis

pull request for reviewing code
move code in this if-branch to a function (handle_cache_response_pdu())