Merge "Add method to check if IA prefix option takes 0 lifetimes." into main
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