DHCPv6 addr reg: add a function helper to create ADDR_REG_REPLY message.
Flag: EXEMPT guarded by an legacy experiment flag Bug: 293393743 Test: TH Change-Id: I1c48ebba71bd49d0164442929d3c5eb9fa96ac90
This commit is contained in:
parent
64baf9aba5
commit
cfa1f11bad
1 changed files with 12 additions and 0 deletions
|
|
@ -817,4 +817,16 @@ public class Dhcp6Packet {
|
|||
clientDuid, iaAddress, preferred, valid);
|
||||
return pkt.buildPacket();
|
||||
}
|
||||
|
||||
/**
|
||||
* Builds a DHCPv6 ADDR-REG-INFORM packet from the required specified parameters.
|
||||
*/
|
||||
public static ByteBuffer buildAddrRegReplyPacket(int transId, @NonNull final byte[] clientDuid,
|
||||
@NonNull final byte[] serverDuid, @NonNull final Inet6Address iaAddress, long preferred,
|
||||
long valid) {
|
||||
final Dhcp6AddrRegReplyPacket pkt =
|
||||
new Dhcp6AddrRegReplyPacket(transId, clientDuid, serverDuid, iaAddress, preferred,
|
||||
valid);
|
||||
return pkt.buildPacket();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue