Init()
Initializes the option setting the type and clearing (setting to zero) all other fields.
SetPreference()
Sets the route preference.
GetPreference() const
Gets the route preference.
SetRouteLifetime()
Sets the lifetime of the route in seconds.
GetRouteLifetime() const
Gets Route Lifetime in seconds.
SetPrefix()
Sets the prefix and adjusts the option length based on the prefix length.
GetPrefix() const
Gets the prefix in this option.
IsValid() const
Tells whether this option is valid.
OptionLengthForPrefix()
Calculates the minimum option length for a given prefix length. The option length (which is in unit of 8 octets) can be 1, 2, or 3 depending on the prefix length. It can be 1 for a zero prefix length, 2 if the prefix length is not greater than 64, and 3 otherwise.
OptionSizeForPrefix()
Calculates the minimum option size (in bytes) for a given prefix length.
GetPrefixBytes()
GetPrefixBytes() const