Skip to content

Commit 8786ec8

Browse files
committed
fixup! ndisc: add router advertisement validity check
1 parent 6eb2406 commit 8786ec8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wire/ndiscoption.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ pub struct PrefixInformation {
405405
impl PrefixInformation {
406406
/// Validates the prefix information option against check a, b, c in
407407
/// https://www.rfc-editor.org/rfc/rfc4862#section-5.5.3
408-
pub fn valid_prefix_info(&self) -> bool {
408+
pub fn is_valid_prefix_info(&self) -> bool {
409409
self.flags.contains(PrefixInfoFlags::ADDRCONF)
410410
&& !self.prefix.is_link_local()
411411
&& self.preferred_lifetime <= self.valid_lifetime

0 commit comments

Comments
 (0)