Home
last modified time | relevance | path

Searched refs:offerPacket (Results 1 – 2 of 2) sorted by relevance

/packages/modules/NetworkStack/tests/unit/src/android/net/dhcp/
DDhcpPacketTest.java173 DhcpPacket offerPacket = DhcpPacket.decodeFullPacket(packet, ENCAP_BOOTP); in assertDomainAndVendorInfoParses() local
174 assertEquals(expectedDomain, offerPacket.mDomainName); in assertDomainAndVendorInfoParses()
175 assertEquals(expectedVendorInfo, offerPacket.mVendorInfo); in assertDomainAndVendorInfoParses()
215 DhcpPacket offerPacket = null; in assertLeaseTimeParses() local
219 offerPacket = DhcpPacket.decodeFullPacket(packet, ENCAP_BOOTP); in assertLeaseTimeParses()
220 fail("Invalid packet parsed successfully: " + offerPacket); in assertLeaseTimeParses()
226 offerPacket = DhcpPacket.decodeFullPacket(packet, ENCAP_BOOTP); in assertLeaseTimeParses()
227 assertNotNull(offerPacket); in assertLeaseTimeParses()
228 assertEquals(rawLeaseTime, offerPacket.mLeaseTime); in assertLeaseTimeParses()
229 DhcpResults dhcpResults = offerPacket.toDhcpResults(); // Just check this doesn't crash. in assertLeaseTimeParses()
[all …]
/packages/modules/NetworkStack/src/android/net/dhcp/
DDhcpServer.java485 final ByteBuffer offerPacket = DhcpPacket.buildOfferPacket( in transmitOffer() local
493 return transmitOfferOrAckPacket(offerPacket, request, lease, clientMac, broadcastFlag); in transmitOffer()