diff options
author | gVisor bot <gvisor-bot@google.com> | 2020-02-20 14:31:39 -0800 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2020-02-20 14:32:49 -0800 |
commit | 67b615b86f2aa1d4ded3dcf2eb8aca4e7fec57a0 (patch) | |
tree | a257fdab73d7125f703de133f407160007eefa62 /pkg/syncevent/waiter_unsafe.go | |
parent | d90d71474f4c82f742140fdf026821709845cece (diff) |
Support disabling a NIC
- Disabled NICs will have their associated NDP state cleared.
- Disabled NICs will not accept incoming packets.
- Writes through a Route with a disabled NIC will return an invalid
endpoint state error.
- stack.Stack.FindRoute will not return a route with a disabled NIC.
- NIC's Running flag will report the NIC's enabled status.
Tests:
- stack_test.TestDisableUnknownNIC
- stack_test.TestDisabledNICsNICInfoAndCheckNIC
- stack_test.TestRoutesWithDisabledNIC
- stack_test.TestRouteWritePacketWithDisabledNIC
- stack_test.TestStopStartSolicitingRouters
- stack_test.TestCleanupNDPState
- stack_test.TestAddRemoveIPv4BroadcastAddressOnNICEnableDisable
- stack_test.TestJoinLeaveAllNodesMulticastOnNICEnableDisable
PiperOrigin-RevId: 296298588
Diffstat (limited to 'pkg/syncevent/waiter_unsafe.go')
0 files changed, 0 insertions, 0 deletions