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

jgonian / commons-ip-math / 78 / 1
98%
master: 98%

Build:
DEFAULT BRANCH: master
Ran 15 Dec 2016 11:39PM UTC
Files 34
Run time 1s
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

15 Dec 2016 11:38PM UTC coverage: 97.611% (+0.01%) from 97.6%
78.1

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

613 of 628 relevant lines covered (97.61%)

1952.67 hits per line

Source Files on job 78.1
  • Tree
  • List 0
  • Changed 11
  • Source Changed 1
  • Coverage Changed 11
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 78
  • Travis Job 78.1
  • 2a23315b on github
  • Prev Job for on master (#74.1)
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