Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • L linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • linux
  • Repository
  • linux
  • include
  • uapi
  • linux
  • rtnetlink.h
Find file BlameHistoryPermalink
  • Nicolas Dichtel's avatar
    netns: add rtnl cmd to add and get peer netns ids · 0c7aecd4
    Nicolas Dichtel authored Jan 15, 2015
    
    
    With this patch, a user can define an id for a peer netns by providing a FD or a
    PID. These ids are local to the netns where it is added (ie valid only into this
    netns).
    
    The main function (ie the one exported to other module), peernet2id(), allows to
    get the id of a peer netns. If no id has been assigned by the user, this
    function allocates one.
    
    These ids will be used in netlink messages to point to a peer netns, for example
    in case of a x-netns interface.
    
    Signed-off-by: default avatarNicolas Dichtel <nicolas.dichtel@6wind.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    0c7aecd4
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7