Re: [U-Boot] [RFC PATCH v2 03/11] lib: net_utils: make string_to_ip stricter

2015-11-24 Thread Chris Packham
On Tue, Nov 24, 2015 at 2:06 PM, Joe Hershberger wrote: > On Mon, Nov 9, 2015 at 1:38 AM, Chris Packham wrote: >> Previously values greater than 255 were implicitly truncated. Add some >> stricter checking to reject addresses with components

Re: [U-Boot] [RFC PATCH v2 03/11] lib: net_utils: make string_to_ip stricter

2015-11-23 Thread Joe Hershberger
On Mon, Nov 9, 2015 at 1:38 AM, Chris Packham wrote: > Previously values greater than 255 were implicitly truncated. Add some > stricter checking to reject addresses with components >255. > > With the input "1234192.168.1.1" the old behaviour would truncate the > address

[U-Boot] [RFC PATCH v2 03/11] lib: net_utils: make string_to_ip stricter

2015-11-08 Thread Chris Packham
Previously values greater than 255 were implicitly truncated. Add some stricter checking to reject addresses with components >255. With the input "1234192.168.1.1" the old behaviour would truncate the address to 192.168.1.1. New behaviour rejects the string outright and returns 0.0.0.0, which for