google / google/gvisor

Add test to verify that bound NIC for an endpoint

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

Description

e.boundNICID is not exposed directly except it can be retrieved by calling endpoint.GetLocalAddress. But getsockname does not return the bound interface.

We should add at least a Go Test that verifies that GetLocalAddress returns the correct NIC ID after bind().

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.