rlaager / docsis

This program encodes a DOCSIS binary configuration file from a human-readable text configuration file.
http://docsis.sourceforge.net
GNU General Public License v2.0
114 stars 70 forks source link

Fail to encode IPv6 address #57

Open jianiau opened 7 years ago

jianiau commented 7 years ago

If the IPv6 address use IPv4-mapped IPv6 address: ::ffff:a.b.c.d/96 for example: ::ffff:1.2.3.4

It will get syntax error 3:syntax error token .2.3.4 Error parsing config file ddd

Test step:

  1. encode text file to cm ocnfig (::FFFF:102:304 = ::FFFF:1.2.3.3) Main {
    SwUpgradeServer6 ::FFFF:102:304 ; }

The output is Main { SwUpgradeServer6 ::ffff:1.2.3.4; / CmMic 3510888c30355a1f3b4211cae90c99b1; / / CmtsMic 16ea3fa0d43e1a0914f4ca77061c6770; / /EndOfDataMkr/ }

  1. Use the output text (or decode the output file to text) to encode again. The error will happen.
rlaager commented 7 years ago

Just to set expectations correctly, this project is not getting much active maintenance. Patches are certainly welcome.