Git Product home page Git Product logo

Comments (7)

jhthorsen avatar jhthorsen commented on June 8, 2024

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.

dmalopsy avatar dmalopsy commented on June 8, 2024

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.

jhthorsen avatar jhthorsen commented on June 8, 2024

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.

dmalopsy avatar dmalopsy commented on June 8, 2024

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.

djzort avatar djzort commented on June 8, 2024

it may be better to check that length <256 and throw a meaningful error?

from docsis-configfile.

jhthorsen avatar jhthorsen commented on June 8, 2024

I'm re-opening this because I think that DOCSIS::ConfigFile should croak/die on invalid input.

from docsis-configfile.

jhthorsen avatar jhthorsen commented on June 8, 2024

Sorry for the long wait. This is now fixed.

from docsis-configfile.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.