google / google/gvisor

Update the neighbor cache upon receiving an NDP Redirect message

Open
#2,285 0 comments 0 reactions 0 assignees View on GitHub
area: networking priority: p2 type: enhancement
Dominant language
Go
Stars
19.3k
Forks
2k
Avg merge
3d 5h
Merged PRs (30d)
264

Description

NDP Redirect messages as defined by [RFC 4861 Section 4.5](https://tools.ietf.org/html/rfc4861#section-4.5) are currently not being processed. Once these messages are validated and processed, the neighbor cache should update upon receiving one with the target link-layer address option.

From [RFC 4861 Section 7.3.3](https://tools.ietf.org/html/rfc4861#section-7.3.3). Node Behavior:
```
A Neighbor Cache entry enters the STALE state when created as a
result of receiving packets other than solicited Neighbor
Advertisements (i.e., Router Solicitations, Router Advertisements,
Redirects, and Neighbor Solicitations). These packets contain the
link-layer address of either the sender or, in the case of Redirect,
the redirection target. However, receipt of these link-layer
addresses does not confirm reachability of the forward-direction path
to that node. Placing a newly created Neighbor Cache entry for which
the link-layer address is known in the STALE state provides assurance
that path failures are detected quickly. In addition, should a
cached link-layer address be modified due to receiving one of the
above messages, the state SHOULD also be set to STALE to provide
prompt verification that the path to the new link-layer address is
working.
```

This issue tracks implementation of updating the neighbor cache when receiving an NDP Redirect message.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.