Skip to content
Snippets Groups Projects
Commit cc9b86c6 authored by Xiao Ma's avatar Xiao Ma
Browse files

Add method to check if IA prefix option takes 0 lifetimes.

Bug: 260934173
Test: TH
Change-Id: If49a888198a52bf0cfefc125e0aa9636c1692279
parent a1eb2e45
No related branches found
No related tags found
No related merge requests found
......@@ -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.
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment