• Pavel Emelyanov's avatar
    tun: Restore tun files and tun links · 1ac6d76c
    Pavel Emelyanov authored
    This thing is pretty straightforward -- on netns creation
    populate it with tun-s, after this collect tun files, open
    and attach them with regular fd-s engine.
    
    One tricky thing -- when populating namespace with tun links
    make them all persistent and drop this flag (if required)
    later, when the first alive opened appears.
    Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
    1ac6d76c
tun.c 9.43 KB