commit | 5b7ba8c2e9e5ab5e67c68d0cde963141beb501d8 | [log] [tgz] |
---|---|---|
author | Paul Stewart <pstew@chromium.org> | Wed Apr 18 09:08:00 2012 -0700 |
committer | Gerrit <chrome-bot@google.com> | Wed Apr 18 17:29:42 2012 -0700 |
tree | c0678969cf41d6ff3d1a4f376d04635f76214ae3 | |
parent | f7bf9bf2d7cb7fe7ebf98c7a575a267c190f6ec1 [diff] |
shill: connection: Work around broken netmasks It has been observed in the field that some network infrastructures send a gateway/netmask pair that is inconsistent and prevents the client from contacting the gateway. Work around this by expanding the netmask, assuming that this parameter is incorrect. However, use sane defaults for maximum expansion of the netmask, so that we do not completely break things. BUG=chromium-os:29416 TEST=New unit tests. Change-Id: Id4730a8c1555fb09033175bdf2bfba1abe93a125 Reviewed-on: https://gerrit.chromium.org/gerrit/20465 Commit-Ready: Paul Stewart <pstew@chromium.org> Reviewed-by: Paul Stewart <pstew@chromium.org> Tested-by: Paul Stewart <pstew@chromium.org>