2008-10-11 Dan Williams <dcbw@redhat.com>
Add support for VPN subnet gateways (bgo #549196) * include/NetworkManager.h - Add key for internal VPN subnet gateway * src/vpn-manager/nm-vpn-connection.c - (ip_address_to_string): return a const from a static buffer so we don't leak a lot of strings - (print_vpn_config): print internal VPN gateway as well - (nm_vpn_connection_ip4_config_get): grab internal VPN gateway from VPN service too - (nm_vpn_connection_get_ip4_internal_gateway): new function * src/NetworkManagerSystem.c src/NetworkManagerSystem.h - (nm_system_device_replace_default_ip4_route): split into two, one for VPN connections and one for normal devices - (replace_default_ip4_route): break out route stuff into its own function - (nm_system_replace_default_ip4_route_vpn, nm_system_replace_default_ip4_route): simplify by having two cases, one for VPNs and one for normal devices * src/NetworkManagerPolicy.c - (update_routing_and_dns): simplify, use split default route replacement functions git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4169 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
@@ -112,17 +112,23 @@ typedef enum {
|
||||
NM_VPN_PLUGIN_FAILURE_BAD_IP_CONFIG
|
||||
} NMVPNPluginFailure;
|
||||
|
||||
#define NM_VPN_PLUGIN_IP4_CONFIG_GATEWAY "gateway"
|
||||
#define NM_VPN_PLUGIN_IP4_CONFIG_ADDRESS "address"
|
||||
#define NM_VPN_PLUGIN_IP4_CONFIG_PTP "ptp"
|
||||
#define NM_VPN_PLUGIN_IP4_CONFIG_PREFIX "prefix"
|
||||
#define NM_VPN_PLUGIN_IP4_CONFIG_DNS "dns"
|
||||
#define NM_VPN_PLUGIN_IP4_CONFIG_NBNS "nbns"
|
||||
#define NM_VPN_PLUGIN_IP4_CONFIG_MSS "mss"
|
||||
#define NM_VPN_PLUGIN_IP4_CONFIG_MTU "mtu"
|
||||
#define NM_VPN_PLUGIN_IP4_CONFIG_TUNDEV "tundev"
|
||||
#define NM_VPN_PLUGIN_IP4_CONFIG_DOMAIN "domain"
|
||||
#define NM_VPN_PLUGIN_IP4_CONFIG_BANNER "banner"
|
||||
#define NM_VPN_PLUGIN_IP4_CONFIG_ROUTES "routes"
|
||||
|
||||
#define NM_VPN_PLUGIN_IP4_CONFIG_EXT_GATEWAY "gateway"
|
||||
#define NM_VPN_PLUGIN_IP4_CONFIG_INT_GATEWAY "internal-gateway"
|
||||
#define NM_VPN_PLUGIN_IP4_CONFIG_ADDRESS "address"
|
||||
#define NM_VPN_PLUGIN_IP4_CONFIG_PTP "ptp"
|
||||
#define NM_VPN_PLUGIN_IP4_CONFIG_PREFIX "prefix"
|
||||
#define NM_VPN_PLUGIN_IP4_CONFIG_DNS "dns"
|
||||
#define NM_VPN_PLUGIN_IP4_CONFIG_NBNS "nbns"
|
||||
#define NM_VPN_PLUGIN_IP4_CONFIG_MSS "mss"
|
||||
#define NM_VPN_PLUGIN_IP4_CONFIG_MTU "mtu"
|
||||
#define NM_VPN_PLUGIN_IP4_CONFIG_TUNDEV "tundev"
|
||||
#define NM_VPN_PLUGIN_IP4_CONFIG_DOMAIN "domain"
|
||||
#define NM_VPN_PLUGIN_IP4_CONFIG_BANNER "banner"
|
||||
#define NM_VPN_PLUGIN_IP4_CONFIG_ROUTES "routes"
|
||||
|
||||
/* Deprecated */
|
||||
#define NM_VPN_PLUGIN_IP4_CONFIG_GATEWAY NM_VPN_PLUGIN_IP4_CONFIG_EXT_GATEWAY
|
||||
|
||||
|
||||
#endif /* NETWORK_MANAGER_VPN_H */
|
||||
|
Reference in New Issue
Block a user