Skip to content

Fail to encode IPv6 address #57

@jianiau

Description

@jianiau

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions