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.java663 protected static void addTlv(ByteBuffer buf, byte type, byte value) { in addTlv() method in DhcpPacket
672 protected static void addTlv(ByteBuffer buf, byte type) { in addTlv() method in DhcpPacket
682 protected static void addTlv(ByteBuffer buf, byte type, @Nullable byte[] payload) { in addTlv() method in DhcpPacket
699 protected static void addTlv(ByteBuffer buf, byte type, @Nullable Inet4Address addr) { in addTlv() method in DhcpPacket
701 addTlv(buf, type, addr.getAddress()); in addTlv()
710 protected static void addTlv(ByteBuffer buf, byte type, @Nullable List<Inet4Address> addrs) { in addTlv() method in DhcpPacket
732 protected static void addTlv(ByteBuffer buf, byte type, @Nullable Short value) { in addTlv() method in DhcpPacket
745 protected static void addTlv(ByteBuffer buf, byte type, @Nullable Integer value) { in addTlv() method in DhcpPacket
758 protected static void addTlv(ByteBuffer buf, byte type, @Nullable String str) { in addTlv() method in DhcpPacket
761 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()
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()
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()
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.java74 addTlv(buffer, DHCP_MESSAGE_TYPE, DHCP_MESSAGE_TYPE_ACK); in finishPacket()
75 addTlv(buffer, DHCP_SERVER_IDENTIFIER, mServerIdentifier); in finishPacket()
78 addTlv(buffer, DHCP_RAPID_COMMIT); in finishPacket()
DDhcpOfferPacket.java76 addTlv(buffer, DHCP_MESSAGE_TYPE, DHCP_MESSAGE_TYPE_OFFER); in finishPacket()
77 addTlv(buffer, DHCP_SERVER_IDENTIFIER, mServerIdentifier); in finishPacket()
/packages/modules/NetworkStack/tests/unit/src/android/net/dhcp/
DDhcpPacketTest.java150 addTlv(buffer, DHCP_MESSAGE_TYPE, mType); in finishPacket()
152 addTlv(buffer, DHCP_DOMAIN_NAME, mDomainBytes); in finishPacket()
155 addTlv(buffer, DHCP_VENDOR_INFO, mVendorInfoBytes); in finishPacket()
158 addTlv(buffer, DHCP_LEASE_TIME, mLeaseTimeBytes); in finishPacket()
161 addTlv(buffer, DHCP_SUBNET_MASK, mNetmaskBytes); in finishPacket()