Comments (7)
I have not looked into this yet, but can you show me in the specification where you can specify more than 21 entries? Could there be a limitation in the spec?
from docsis-configfile.
267 $type = pack 'C', $syminfo->{code}; 268 $length = $syminfo->{lsize} == 2 ? pack('n', length $value) : pack('C', length $value); 269 $mic->{$name} = "$type$length$value"; 270 $bytes .= $mic->{$name}; 271 }
The dschannellists $value's length is > 255, so the pack of a single C causes it to wrap - hence the error.
I am not sure if its legal to have the length of value of the channels longer than 255? it may be implicitly illegal if the $length position is limited to 8 bits? i poked around in the spec's but honestly, got lost trying to get a clear answer.
from docsis-configfile.
It would be interesting to see how another encoder solves this. If you can create a config file with the desired result and then attach the binary file, I can try to parse that file and fix this module.
Reason for me being rather passive on this, is because I have not been into DOCSIS tech for over ten years.
from docsis-configfile.
No problem I was pleasantly surprised how quick you responded.
I found that DOCSIS Configuration File creator (which is now here https://github.com/rlaager/docsis) does compile the config however with a "warning: aggregate size of settings block larger than 255, skipping". Decoding it back confirms that it did not include the DsChannelList. So it is more likely that this is not a bug. For now I am treating it as a non issue and exploring alternatives like spiting up the list into two.
Apologies for wasting your time.
from docsis-configfile.
it may be better to check that length <256 and throw a meaningful error?
from docsis-configfile.
I'm re-opening this because I think that DOCSIS::ConfigFile should croak/die on invalid input.
from docsis-configfile.
Sorry for the long wait. This is now fixed.
from docsis-configfile.
Related Issues (14)
- Warning during decode of working config file
- Issue with how pktcMtaDevProvConfigHash is calculated and location within MTA file HOT 3
- ip parameter HOT 2
- I need help with "Cannot adopt OID ..." HOT 9
- decoded configfile output... HOT 8
- ushort_list missing HOT 12
- Support for TLV 81 (ManufacturerCVCChain)? HOT 6
- Docsisious icons? HOT 2
- Support for Gauge32 OID value type HOT 3
- Unknown SNMP type: HEXSTR HOT 1
- pktcMtaDevProvConfigHash HOT 3
- License clarification HOT 1
- docsis text file to perl structure HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docsis-configfile.