don't consider compression when looking for a tlv

git-svn-id: file:///home/svn/framework3/trunk@9527 4d416f70-5f16-0410-b530-b9f4589650da
unstable
James Lee 2010-06-15 17:55:37 +00:00
parent 79190edba3
commit 998509529c
1 changed files with 1 additions and 1 deletions

View File

@ -999,7 +999,7 @@ function packet_get_tlv($pkt, $type) {
while ($offset < strlen($pkt)) {
$tlv = unpack("Nlen/Ntype", substr($pkt, $offset, 8));
#my_print("len: {$tlv['len']}, type: {$tlv['type']}");
if ($type == $tlv['type']) {
if ($type == ($tlv['type'] & ~TLV_META_TYPE_COMPRESSED)) {
#my_print("Found one at offset $offset");
if (($type & TLV_META_TYPE_STRING) == TLV_META_TYPE_STRING) {
$tlv = unpack("Nlen/Ntype/a*value", substr($pkt, $offset, $tlv['len']));