Re: [U-Boot] [PATCH] lib: net_utils: make string_to_ip stricter

2016-12-26 Thread Chris Packham
On Mon, Dec 26, 2016 at 6:23 PM, Simon Glass wrote: > Hi Chris, > > On 20 December 2016 at 11:01, 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" th

Re: [U-Boot] [PATCH] lib: net_utils: make string_to_ip stricter

2016-12-25 Thread Simon Glass
Hi Chris, On 20 December 2016 at 11:01, 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 to 192.168.1.1. N

[U-Boot] [PATCH] lib: net_utils: make string_to_ip stricter

2016-12-19 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