fix setting of invalid IPv4 length

Don't overwrite a user specified length with the correct
length.
call parseIntAttribute directly for ipv{4,6} fields
fix setting of invalid IPv6 length

Don't overwrite a user specified length with the correct
length.