• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

jgonian / commons-ip-math / 78
98%

Build:
DEFAULT BRANCH: master
Ran 15 Dec 2016 11:39PM UTC
Jobs 1
Files 22
Run time 2s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
78

Pull #14

travis-ci

web-flow
Handle IPv4-embedded IPv6 addresses with leading zeros

If the IPv6 address to be parsed ends with an IPv4 address in dot notation, the IPv4 portion will be represented by two parts in hexadecimal notation. If the first part is 0 (because the  IPv4 address in dot notation starts with "0.0."), it would fail to (correctly) parse the overall address, when the IPv6 prefix is not all zeros.
One practical use case of the dot notation is IPv4-embedded IPv6 addresses.  Without this change "::ffff:0.0.0.0" failed to parse, because it was rewritten to "::ffff:" and e.g. "::ffff:0.0.0.1" was rewritten to "::ffff:1", when it should have been "::ffff:0:1".

Leading zeros in the dot notation IPv4 part are now explicitly forbidden, because some systems interpret this as octal numbers. RFC 3986 defines "IPv4address" within an IPv6 address without leading zeros, so this decision has formal backing.
Pull Request #14: Handle IPv4-embedded IPv6 addresses with leading zeros

612 of 627 relevant lines covered (97.61%)

1955.79 hits per line

Jobs
ID Job ID Ran Files Coverage
1 78.1 15 Dec 2016 11:39PM UTC 0
97.61
Travis Job 78.1
Source Files on build 78
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #78
  • Pull Request #14
  • PR Base - master (#74)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc