Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the DOCSIS-ConfigFile CPAN distribution.

Report information
The Basics
Id: 34548
Status: resolved
Priority: 0/
Queue: DOCSIS-ConfigFile

People
Owner: Nobody in particular
Requestors: dmircea [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.4
Fixed in: (no value)



Subject: CmMic and CmtsMic
To avoid errors poping out when you decode and encode a file you need to skip the NA values (which are CmMic and CmtsMic). Please see the proposed patch.
Subject: mic.patch.txt
--- ConfigFile.pm.orig 2008-03-29 09:56:24.000000000 +0200 +++ ConfigFile.pm 2008-03-29 09:57:05.000000000 +0200 @@ -259,6 +259,8 @@ ### init my $name = $tlv->{'name'} or next TLV; + next TLV if($name eq "NA"); + my $syminfo = DOCSIS::ConfigFile::Syminfo->from_id($name); my $sub = DOCSIS::ConfigFile::Encode->can($syminfo->func); my $code = $syminfo->code;
The code now skips a TLV if the encode sub returns undef (and only keeps array-ref values), sub "mic" returns undef, and is used by CmMic and CmtsMic.