diff --git a/staticlibs/device/com/android/net/module/util/structs/IaPrefixOption.java b/staticlibs/device/com/android/net/module/util/structs/IaPrefixOption.java index 176b7bc15e..e9c39e4aa8 100644 --- a/staticlibs/device/com/android/net/module/util/structs/IaPrefixOption.java +++ b/staticlibs/device/com/android/net/module/util/structs/IaPrefixOption.java @@ -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. */