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

Add hotswapping to FromHost and ToHost elements #424

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Dec 2, 2018

  1. Added hotwapping support to FromHost and ToHost elements.

    FromHost initiates a tap device which is used to pass packets to the kernel
    network stack handling. ToHost uses the tap's fd opened be FromHost.
    As it was, when sending a new config to click having when the previous had a FromHost
    element, would fail as the tap device is busy. Hotswapping support enables to send click
    a hotconfig which forces the new FromHost(and ToHost) to take state from the swapped elements,
    thus continuing proper packet handling.
    
    When adding hotswap support to FromHost, ToHost must also support hotswap as it searches on initialization
    an existing and initialized FromHost element to take it fd.
    
    Signed-off-by: Shlomo Shenzis <[email protected]>
    shlomos committed Dec 2, 2018
    Configuration menu
    Copy the full SHA
    b883d07 View commit details
    Browse the repository at this point in the history