diff options
author | Remi NGUYEN VAN <reminv@google.com> | 2018-08-31 12:14:24 +0900 |
---|---|---|
committer | Remi NGUYEN VAN <reminv@google.com> | 2018-08-31 13:23:39 +0900 |
commit | e1a1dcc994763cafadcec599a1cc730299392830 (patch) | |
tree | b351f0e3d2f53a4d1de3fa04654ec1436a4646a2 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 8975ab632259e8e7620f72e8abee2fed16c704bf (diff) |
Ignore DHCP discover and request w/ invalid giaddr
This matches previous behavior, and there could be situations where
another server on the network would be configured to reply to such
requests, so not replying is better than sending NAKs as done now.
Also refactoring requests in DhcpLeaseRepositoryTest and replacing some
INETADDR_UNSPEC usages for giaddr with INET4_ANY (giaddr is a BOOTP
field and can't be unspecified, only empty).
Test: Following DhcpServerTest.py regression tests pass:
test_request_selecting_giaddr_outside_subnet
test_discover_requestaddress_giaddr_outside_subnet
test_discover_knownaddress_giaddr_outside_subnet
test_discover_giaddr_outside_subnet
Also: atest FrameworksNetTests passes
Change-Id: I4decffccfc64d5e0e29c9ce1cf1446644fcf8190
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions