-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- added test for LOC
- Loading branch information
mike.pultz
committed
Sep 1, 2010
1 parent
f81f90d
commit 22c54f3
Showing
4 changed files
with
322 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,6 +52,16 @@ | |
/** | ||
* OPT Resource Record - RFC2929 section 3.1 | ||
* | ||
* +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ | ||
* | OPTION-CODE | | ||
* +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ | ||
* | OPTION-LENGTH | | ||
* +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ | ||
* | | | ||
* / OPTION-DATA / | ||
* / / | ||
* +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ | ||
* | ||
* @category Networking | ||
* @package Net_DNS2 | ||
* @author Mike Pultz <[email protected]> | ||
|
@@ -97,6 +107,14 @@ protected function rrFromString(array $rdata) | |
*/ | ||
protected function rrSet(Net_DNS2_Packet &$packet) | ||
{ | ||
if ($this->rdlength > 0) { | ||
|
||
$x = unpack('noptioncode/noptionlength/ | ||
|
||
return true; | ||
} | ||
|
||
return false; | ||
} | ||
|
||
/** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.