flimflam: openvpn: handle tunnel restarts

When entering RECONNECT state notify the vpn support code to drop the
default route so openvpn can re-resolve the remote address/hostname.
After re-connecting we are notified as usual through the d-bus callback
but the parameters passed back lack the ifconfig state so preserve our
local state so we can re-plumb the complete ipaddress.

BUG=chromium-os:24116
TEST=setup a tunnel, suspend long enough for the tunnel timeout to occur; then verify the subsequent restart results in a working tunnel

Change-Id: Ib664be2f2508cbadf42c33cbfdcdb6488968f986
Reviewed-on: https://gerrit.chromium.org/gerrit/12784
Commit-Ready: Sam Leffler <sleffler@chromium.org>
Reviewed-by: Sam Leffler <sleffler@chromium.org>
Tested-by: Sam Leffler <sleffler@chromium.org>
1 file changed