mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Add getter for NDP configuration
PiperOrigin-RevId: 669127173
This commit is contained in:
@@ -385,6 +385,13 @@ func (e *endpoint) SetNDPConfigurations(c NDPConfigurations) {
|
||||
e.mu.ndp.configs = c
|
||||
}
|
||||
|
||||
// NDPConfigurations implements NDPEndpoint.
|
||||
func (e *endpoint) NDPConfigurations() NDPConfigurations {
|
||||
e.mu.RLock()
|
||||
defer e.mu.RUnlock()
|
||||
return e.mu.ndp.configs
|
||||
}
|
||||
|
||||
// hasTentativeAddr returns true if addr is tentative on e.
|
||||
func (e *endpoint) hasTentativeAddr(addr tcpip.Address) bool {
|
||||
e.mu.RLock()
|
||||
|
||||
@@ -172,6 +172,9 @@ const (
|
||||
type NDPEndpoint interface {
|
||||
// SetNDPConfigurations sets the NDP configurations.
|
||||
SetNDPConfigurations(NDPConfigurations)
|
||||
|
||||
// NDPConfigurations returns the NDP configurations.
|
||||
NDPConfigurations() NDPConfigurations
|
||||
}
|
||||
|
||||
// DHCPv6ConfigurationFromNDPRA is a configuration available via DHCPv6 that an
|
||||
|
||||
Reference in New Issue
Block a user