Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adapt cmd-nsc to work with sendfd/recvfd. #16

Merged
merged 3 commits into from
Sep 23, 2020

Conversation

tigrulya-exe
Copy link
Member

No description provided.

Tigran Manasyan added 2 commits September 21, 2020 20:12
Signed-off-by: tigrulya <tmanasyan21@gmail.com>
Signed-off-by: tigrulya <tmanasyan21@gmail.com>
Signed-off-by: tigrulya <tmanasyan21@gmail.com>
@tigrulya-exe tigrulya-exe marked this pull request as ready for review September 22, 2020 09:59
outgoingMechanism.Parameters[kernel.NetNSInodeKey] = strconv.FormatUint(uint64(inode), 10)
kernel.ToMechanism(outgoingMechanism).SetNetNSURL("unix:///proc/self/ns/net")
fileURL := &url.URL{Scheme: "file", Path: "/proc/self/ns/net"}
kernel.ToMechanism(outgoingMechanism).SetNetNSURL(fileURL.String())

case memif.MECHANISM:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For memif should we pass a file handle as well?

@haiodo haiodo merged commit a9fcf2a into networkservicemesh:master Sep 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants