Commit Graph

3 Commits

Author SHA1 Message Date
Ghanan Gowripalan 07ffecef83 Implement fmt.Stringer for NDPRoutePreference
PiperOrigin-RevId: 382427879
2021-06-30 18:33:49 -07:00
Ghanan Gowripalan 3a8ba8ed9d Support parsing Prf field in RAs
This change prepares for a later change which actually handles the
Prf field in RAs to discover default routers with preference values,
as per RFC 4191.

Updates #6172.

Test: header_test.TestNDPRouterAdvert
PiperOrigin-RevId: 379421710
2021-06-14 23:09:01 -07:00
Ghanan Gowripalan 515e0558d4 Add a type to represent the NDP Router Advertisement message.
This change is in preparation for NDP Router Discovery where the stack will need
to handle NDP Router Advertisments.

Tests: Test that given an NDP Router Advertisement buffer (body of an ICMPv6
packet, correct values are returned by the field getters).
PiperOrigin-RevId: 276146817
2019-10-22 14:41:51 -07:00