Clean all VPN added host and gateway entries on VPN disconnect
authorMohamed Abbas <mohamed.abbas@intel.com>
Tue, 20 Apr 2010 22:05:47 +0000 (15:05 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 6 May 2010 05:32:30 +0000 (07:32 +0200)
commit3ee48bb2abb77664f0a1fa808e9ae8ce0901b881
treefc7c334220adf622583503613c30977571114afb
parentdb24367c1ea9339c2566246344bce5e50a4438f0
Clean all VPN added host and gateway entries on VPN disconnect

When VPN disconnect we need to clean all gateway and host entries
correctly. VPN will add a gatway into active physical interface,
this entries need to be delete on VPN disconnect.

This patch fixes the issue of more than one defaut gateway showing up.
VPN gateway needs extra work to clean and set the gateway since it needs
a physical interface to set the host/gateway correctly.
src/connection.c