Merge "Add method to check if IA prefix option takes 0 lifetimes." into main am: 26af70f5fe
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2786859 Change-Id: Id7406c498c477f48de69ed7ff1f3c912e52fcc82 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -107,6 +107,13 @@ public class IaPrefixOption extends Struct {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check whether or not IA Prefix option has 0 preferred and valid lifetimes.
|
||||
*/
|
||||
public boolean withZeroLifetimes() {
|
||||
return preferred == 0 && valid == 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Build an IA_PD prefix option with given specific parameters.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user