Skip to content

Comments

Added function UniqueId which returns a string that uniquely identifies namespace#14

Merged
vishvananda merged 1 commit intovishvananda:masterfrom
amudukutore:uniqueid
Apr 30, 2016
Merged

Added function UniqueId which returns a string that uniquely identifies namespace#14
vishvananda merged 1 commit intovishvananda:masterfrom
amudukutore:uniqueid

Conversation

@amudukutore
Copy link
Contributor

I have a use case where I'd like to uniquely identify a network namespace given a netns handle. The netns handle itself does this job but also keeps the associated file handle open. The proposed function UniqueId returns a string identifier which uniquely identifies the network namespace (using the inode and dev keys similar to the Equal comparison function). The caller can then choose to close the handle and still hold on to the unique string identifier.

the namespace associated with a network handle.
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