644f41368f9eddd475fa9c5dddc7ceac5722a3a8 |
|
24-Apr-2015 |
Etan Cohen <etancohen@google.com> |
Merge commit '4cb5d80' into merge2
|
f443bfc25e80ef46aedd616d4ecb4c95abd7be7a |
|
22-Apr-2015 |
Lorenzo Colitti <lorenzo@google.com> |
Always send the DHCP client identifier. Currently we send it only in request packets, but not in discover packets. This might confuse servers because they might think that the discover and the request come from different clients. Also reorder the options in the request packet to match the order used by the legacy DHCP client. While I'm at it, fix the generation code for inform and decline packets, which we do not use. Bug: 19704592 Bug: 20335221 Change-Id: I1d45306e76dbd5da9cc4611e6df84a9f67346b2c
/frameworks/base/services/net/java/android/net/dhcp/DhcpRequestPacket.java
|
3e979321a5d96b9e2688f67ef0f936602c0f7e5a |
|
21-Apr-2015 |
Lorenzo Colitti <lorenzo@google.com> |
Set the secs field in the BOOTP header. We mostly follow RFC 2131, which says that secs is the number of seconds "since client began address acquisition or renewal process", and thus set secs to zero on renew. This is different from our current behaviour, which keeps on counting without resetting secs to zero on renew. Bug: 19704592 Change-Id: Ifbb7644094c579be626ffb698eee87047425dbf0
/frameworks/base/services/net/java/android/net/dhcp/DhcpRequestPacket.java
|
fe5ffce09c4a163ee9a190aedc9fd7cea38a576f |
|
10-Mar-2015 |
Lorenzo Colitti <lorenzo@google.com> |
DHCP: protocol changes. 1. Define and add parsing code for MTU, max message size, T1, T2. 2. Add common TLVs (message size, hostname, vendor ID) to all packets sent by the client. 3. Don't include requested IP and server ID in renew messages, since the RFC says MUST NOT. 4. Don't hardcode the broadcast flag to true in DISCOVER packets, use what the caller passed in. 5. Make some methods static. Bug: 19704592 Change-Id: I42a0997e468b12e19cad9b403b98fe266e6cea73
/frameworks/base/services/net/java/android/net/dhcp/DhcpRequestPacket.java
|
51697effe9567a144532190ad534370a00c15996 |
|
14-Mar-2015 |
Lorenzo Colitti <lorenzo@google.com> |
DHCP: Minor cleanups to the packet code. 1. Delete the DhcpStateMachine, since we don't plan to use it. 2. Make all InetAddresses Inet4Addresses, since that's what they are. In order to do this, define INADDR_ANY and INADDR_BROADCAST, constants, since Inet4Address.{ANY,ALL} are not Inet4Addresses but InetAddresses. Bug: 19704592 Change-Id: I5a0499be889076992a60aaad0bd8be5ea66bd560
/frameworks/base/services/net/java/android/net/dhcp/DhcpRequestPacket.java
|
eca9b9bd8b9a4d0a2de8af8edc20834dd46b98b3 |
|
09-Mar-2015 |
Lorenzo Colitti <lorenzo@google.com> |
DHCP: Move the packet code to frameworks/base/services. There's no need for it to be in frameworks/base/core, since it will only be used by services. Bug: 19704592 Change-Id: I2f5277eca848b7000ca46db575e8602eacb5c8bd
/frameworks/base/services/net/java/android/net/dhcp/DhcpRequestPacket.java
|
04b8d3aab6acdf382c74d12a89b5fc50fd8d0158 |
|
10-Mar-2015 |
Lorenzo Colitti <lorenzo@google.com> |
DHCP: protocol changes. 1. Define and add parsing code for MTU, max message size, T1, T2. 2. Add common TLVs (message size, hostname, vendor ID) to all packets sent by the client. 3. Don't include requested IP and server ID in renew messages, since the RFC says MUST NOT. 4. Don't hardcode the broadcast flag to true in DISCOVER packets, use what the caller passed in. 5. Make some methods static. Bug: 19704592 Change-Id: I42a0997e468b12e19cad9b403b98fe266e6cea73
/frameworks/base/services/net/java/android/net/dhcp/DhcpRequestPacket.java
|
c8a0f49feecaf231e3f5972bd247dfbc586ccb34 |
|
14-Mar-2015 |
Lorenzo Colitti <lorenzo@google.com> |
DHCP: Minor cleanups to the packet code. 1. Delete the DhcpStateMachine, since we don't plan to use it. 2. Make all InetAddresses Inet4Addresses, since that's what they are. In order to do this, define INADDR_ANY and INADDR_BROADCAST, constants, since Inet4Address.{ANY,ALL} are not Inet4Addresses but InetAddresses. Bug: 19704592 Change-Id: I5a0499be889076992a60aaad0bd8be5ea66bd560
/frameworks/base/services/net/java/android/net/dhcp/DhcpRequestPacket.java
|
c95a87f30d069472302f90a206e229b82bb2316a |
|
09-Mar-2015 |
Lorenzo Colitti <lorenzo@google.com> |
DHCP: Move the packet code to frameworks/base/services. There's no need for it to be in frameworks/base/core, since it will only be used by services. Bug: 19704592 Change-Id: I2f5277eca848b7000ca46db575e8602eacb5c8bd
/frameworks/base/services/net/java/android/net/dhcp/DhcpRequestPacket.java
|