/** * parses the rdata of the Net_DNS2_Packet object * * @param Net_DNS2_Packet &$packet a Net_DNS2_Packet packet to parse the RR from * * @return boolean * @access protected * */ protected function rrSet(Net_DNS2_Packet &$packet) { if ($this->rdlength > 0) { $this->psdnaddress = Net_DNS2_Packet::label($packet, $packet->offset); return true; } return false; }
/** * parses the rdata of the Net_DNS2_Packet object * * @param Net_DNS2_Packet &$packet a Net_DNS2_Packet packet to parse the RR from * * @return boolean * @access protected * */ protected function rrSet(Net_DNS2_Packet &$packet) { if ($this->rdlength > 0) { $offset = $packet->offset; $this->cpu = trim(Net_DNS2_Packet::label($packet, $offset), '"'); $this->os = trim(Net_DNS2_Packet::label($packet, $offset), '"'); return true; } return false; }
/** * parses the rdata of the Net_DNS2_Packet object * * @param Net_DNS2_Packet &$packet a Net_DNS2_Packet packet to parse the RR from * * @return boolean * @access protected * */ protected function rrSet(Net_DNS2_Packet &$packet) { if ($this->rdlength > 0) { $offset = $packet->offset; $this->previous = Net_DNS2_Packet::label($packet, $offset); $this->next = Net_DNS2_Packet::label($packet, $offset); return true; } return false; }
/** * parses the rdata of the Net_DNS2_Packet object * * @param Net_DNS2_Packet &$packet a Net_DNS2_Packet packet to parse the RR from * * @return boolean * @access protected * */ protected function rrSet(Net_DNS2_Packet &$packet) { if ($this->rdlength > 0) { $this->isdnaddress = Net_DNS2_Packet::label($packet, $packet->offset); // // look for a SA (sub address) - it's optional // if ( (strlen($this->isdnaddress) + 1) < $this->rdlength) { $this->sa = Net_DNS2_Packet::label($packet, $packet->offset); } else { $this->sa = ''; } return true; } return false; }
/** * parses the rdata of the Net_DNS2_Packet object * * @param Net_DNS2_Packet &$packet a Net_DNS2_Packet packet to parse the RR from * * @return boolean * @access protected * */ protected function rrSet(Net_DNS2_Packet &$packet) { if ($this->rdlength > 0) { // // unpack the order and preference // $x = unpack('norder/npreference', $this->rdata); $this->order = $x['order']; $this->preference = $x['preference']; $offset = $packet->offset + 4; $this->flags = Net_DNS2_Packet::label($packet, $offset); $this->services = Net_DNS2_Packet::label($packet, $offset); $this->regexp = Net_DNS2_Packet::label($packet, $offset); $this->replacement = Net_DNS2_Packet::expand($packet, $offset); return true; } return false; }
/** * parses the rdata of the Net_DNS2_Packet object * * @param Net_DNS2_Packet &$packet a Net_DNS2_Packet packet to parse the RR from * * @return boolean * @access protected * */ protected function rrSet(Net_DNS2_Packet &$packet) { if ($this->rdlength > 0) { // // parse the preference // $x = unpack('npreference', $this->rdata); $this->preference = $x['preference']; // // get the exchange entry server) // $offset = $packet->offset + 2; $this->exchange = Net_DNS2_Packet::label($packet, $offset); return true; } return false; }
/** * parses the rdata of the Net_DNS2_Packet object * * @param Net_DNS2_Packet &$packet a Net_DNS2_Packet packet to parse the RR from * * @return boolean * @access protected * */ protected function rrSet(Net_DNS2_Packet &$packet) { if ($this->rdlength > 0) { $length = $packet->offset + $this->rdlength; $offset = $packet->offset; while ($length > $offset) { $this->text[] = Net_DNS2_Packet::label($packet, $offset); } return true; } return false; }