Home
last modified time | relevance | path

Searched refs:addTlv (Results 1 – 10 of 10) sorted by relevance

/packages/modules/NetworkStack/src/android/net/dhcp/
DDhcpPacket.java631 protected static void addTlv(ByteBuffer buf, byte type, byte value) { in addTlv() method in DhcpPacket
640 protected static void addTlv(ByteBuffer buf, byte type) { in addTlv() method in DhcpPacket
650 protected static void addTlv(ByteBuffer buf, byte type, @Nullable byte[] payload) { in addTlv() method in DhcpPacket
667 protected static void addTlv(ByteBuffer buf, byte type, @Nullable Inet4Address addr) { in addTlv() method in DhcpPacket
669 addTlv(buf, type, addr.getAddress()); in addTlv()
678 protected static void addTlv(ByteBuffer buf, byte type, @Nullable List<Inet4Address> addrs) { in addTlv() method in DhcpPacket
700 protected static void addTlv(ByteBuffer buf, byte type, @Nullable Short value) { in addTlv() method in DhcpPacket
713 protected static void addTlv(ByteBuffer buf, byte type, @Nullable Integer value) { in addTlv() method in DhcpPacket
726 protected static void addTlv(ByteBuffer buf, byte type, @Nullable String str) { in addTlv() method in DhcpPacket
729 addTlv(buf, type, str.getBytes("US-ASCII")); in addTlv()
[all …]
DDhcpRequestPacket.java57 addTlv(buffer, DHCP_MESSAGE_TYPE, DHCP_MESSAGE_TYPE_REQUEST); in finishPacket()
58 addTlv(buffer, DHCP_CLIENT_IDENTIFIER, getClientId()); in finishPacket()
60 addTlv(buffer, DHCP_REQUESTED_IP, mRequestedIp); in finishPacket()
63 addTlv(buffer, DHCP_SERVER_IDENTIFIER, mServerIdentifier); in finishPacket()
66 addTlv(buffer, DHCP_PARAMETER_LIST, mRequestedParams); in finishPacket()
DDhcpDiscoverPacket.java62 addTlv(buffer, DHCP_MESSAGE_TYPE, DHCP_MESSAGE_TYPE_DISCOVER); in finishPacket()
63 addTlv(buffer, DHCP_CLIENT_IDENTIFIER, getClientId()); in finishPacket()
65 addTlv(buffer, DHCP_PARAMETER_LIST, mRequestedParams); in finishPacket()
67 addTlv(buffer, DHCP_RAPID_COMMIT); in finishPacket()
DDhcpDeclinePacket.java58 addTlv(buffer, DHCP_MESSAGE_TYPE, DHCP_MESSAGE_TYPE_DECLINE); in finishPacket()
59 addTlv(buffer, DHCP_CLIENT_IDENTIFIER, getClientId()); in finishPacket()
60 addTlv(buffer, DHCP_REQUESTED_IP, mRequestedIp); in finishPacket()
61 addTlv(buffer, DHCP_SERVER_IDENTIFIER, mServerIdentifier); in finishPacket()
DDhcpReleasePacket.java52 addTlv(buffer, DHCP_MESSAGE_TYPE, DHCP_MESSAGE_TYPE_RELEASE); in finishPacket()
53 addTlv(buffer, DHCP_CLIENT_IDENTIFIER, getClientId()); in finishPacket()
54 addTlv(buffer, DHCP_SERVER_IDENTIFIER, mServerIdentifier); in finishPacket()
DDhcpInformPacket.java56 addTlv(buffer, DHCP_MESSAGE_TYPE, DHCP_MESSAGE_TYPE_INFORM); in finishPacket()
57 addTlv(buffer, DHCP_CLIENT_IDENTIFIER, getClientId()); in finishPacket()
59 addTlv(buffer, DHCP_PARAMETER_LIST, mRequestedParams); in finishPacket()
DDhcpNakPacket.java58 addTlv(buffer, DHCP_MESSAGE_TYPE, DHCP_MESSAGE_TYPE_NAK); in finishPacket()
59 addTlv(buffer, DHCP_SERVER_IDENTIFIER, mServerIdentifier); in finishPacket()
60 addTlv(buffer, DHCP_MESSAGE, mMessage); in finishPacket()
DDhcpAckPacket.java73 addTlv(buffer, DHCP_MESSAGE_TYPE, DHCP_MESSAGE_TYPE_ACK); in finishPacket()
74 addTlv(buffer, DHCP_SERVER_IDENTIFIER, mServerIdentifier); in finishPacket()
77 addTlv(buffer, DHCP_RAPID_COMMIT); in finishPacket()
DDhcpOfferPacket.java73 addTlv(buffer, DHCP_MESSAGE_TYPE, DHCP_MESSAGE_TYPE_OFFER); in finishPacket()
74 addTlv(buffer, DHCP_SERVER_IDENTIFIER, mServerIdentifier); in finishPacket()
/packages/modules/NetworkStack/tests/unit/src/android/net/dhcp/
DDhcpPacketTest.java143 addTlv(buffer, DHCP_MESSAGE_TYPE, mType); in finishPacket()
145 addTlv(buffer, DHCP_DOMAIN_NAME, mDomainBytes); in finishPacket()
148 addTlv(buffer, DHCP_VENDOR_INFO, mVendorInfoBytes); in finishPacket()
151 addTlv(buffer, DHCP_LEASE_TIME, mLeaseTimeBytes); in finishPacket()
154 addTlv(buffer, DHCP_SUBNET_MASK, mNetmaskBytes); in finishPacket()