2005-05-16 Dan Williams <dcbw@redhat.com>
Patch from Tomislav Vujec <tvujec@redhat.com> * gnome/applet/applet-dbus-info.c - (nmi_dbus_get_vpn_connection_routes): new function, pull routes out of GConf and pass them to NetworkManager. New key is 'routes' under the VPN connection, and should be a string list * src/NetworkManagerSystem.c - (nm_system_vpn_device_set_from_ip4_config): if user-defined routes exist, set them on the device when we set the rest of the VPN config. Ensure they are in the correct format since they are passed directly to the command line. * src/backends/NetworkManagerRedHat.c src/backends/NetworkManagerDebian.c - (nm_system_device_add_route_via_device_with_iface): new function * src/vpn-manager/nm-dbus-vpn.c - (nm_dbus_vpn_get_routes): grab VPN routes from NetworkManagerInfo * src/vpn-manager/nm-vpn-manager.c - (nm_vpn_manager_handle_ip4_config_signal): grab routes from NMI and pass them into the IP4 config functions git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@637 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
@@ -39,6 +39,8 @@ void nm_system_device_flush_routes_with_iface (const char *iface);
|
||||
void nm_system_device_add_default_route_via_device(NMDevice *dev);
|
||||
void nm_system_device_add_default_route_via_device_with_iface(const char *iface);
|
||||
|
||||
void nm_system_device_add_route_via_device_with_iface (const char *iface, const char *route);
|
||||
|
||||
void nm_system_device_flush_addresses (NMDevice *dev);
|
||||
void nm_system_device_flush_addresses_with_iface (const char *iface);
|
||||
|
||||
@@ -64,7 +66,7 @@ void nm_system_remove_ip4_config_nameservers (NMNamedManager *named, NMIP4Con
|
||||
void nm_system_remove_ip4_config_search_domains (NMNamedManager *named, NMIP4Config *config);
|
||||
|
||||
gboolean nm_system_device_set_from_ip4_config (NMDevice *dev);
|
||||
gboolean nm_system_vpn_device_set_from_ip4_config (NMNamedManager *named, NMDevice *active_device, const char *iface, NMIP4Config *config);
|
||||
gboolean nm_system_vpn_device_set_from_ip4_config (NMNamedManager *named, NMDevice *active_device, const char *iface, NMIP4Config *config, char **routes, int num_routes);
|
||||
|
||||
gboolean nm_system_device_set_up_down (NMDevice *dev, gboolean up);
|
||||
gboolean nm_system_device_set_up_down_with_iface (NMDevice *dev, const char *iface, gboolean up);
|
||||
|
Reference in New Issue
Block a user