HomePhorge

(#11499) Better validation for IPv4 and IPv6 address in host type.
18472282b665Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(#11499) Better validation for IPv4 and IPv6 address in host type.

The previous code was fairly lax in validation, and would allow a bunch of
invalid addresses through - as well as rejecting some legal, but uncommon,
IPv6 address types.

This adds substantial testing, especially around IPv6 addressing, and replaces
the older validation with new, fancy stuff that works for all the cases.

Signed-off-by: Daniel Pittman <daniel@puppetlabs.com>

Trailing whitespace fixup by Jeff McCune <jeff@puppetlabs.com>

Details

Provenance
Daniel Pittman <daniel@puppetlabs.com>Authored on
Jeff McCune <jeff@puppetlabs.com>Committed on Jan 18 2012, 7:00 PM
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU399e923f790b: Merge pull request #170 from xaque208/7296
Branches
Unknown
Tags
Unknown

Event Timeline

Jeff McCune <jeff@puppetlabs.com> committed rPU18472282b665: (#11499) Better validation for IPv4 and IPv6 address in host type. (authored by Daniel Pittman <daniel@puppetlabs.com>).Jan 18 2012, 7:00 PM