1: 
   2: 
   3: /**********************
   4: *                     *
   5: *  COMPILER INCLUDES  *
   6: *                     *
   7: **********************/
   8: 
   9: 
  10: #include <cassert> 
  11: 
  12: 
  13: /*********************
  14: *                    *
  15: *  PROJECT INCLUDES  *
  16: *                    *
  17: *********************/
  18: 
  19: 
  20: #include "dnsutil.h" 
  21: 
  22: 
  23: /**********************
  24: *                     *
  25: *  METHOD REMOVEADDR  *
  26: *                     *
  27: **********************/
  28: 
  29: 
  30: SockAddrIn *DNSPacket::RemoveAddr() {
  31:   SockAddrIn *sipOut = m_sipRemote;
  32:   m_sipRemote = NULL;
  33:   return sipOut;
  34: }
  35: 
  36: 
  37: /******************
  38: *                 *
  39: *  METHOD TESTID  *
  40: *                 *
  41: ******************/
  42: 
  43: 
  44: bool DNSPacket::TestID(unsigned short i_usID) const {
  45:   unsigned short usID;
  46: 
  47:   this->PReadNBO(usID,0);
  48:   if (usID==i_usID) return true;
  49:   return false;
  50: }
  51: 
  52: 
  53: