Merge "Add method to check if IA prefix option takes 0 lifetimes." into main

This commit is contained in:
Xiao Ma
2023-10-20 05:37:26 +00:00
committed by Gerrit Code Review

View File

@@ -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.
*/