diff options
author | Dan Williams <dcbw@redhat.com> | 2008-12-09 20:01:49 +0000 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2008-12-09 20:01:49 +0000 |
commit | 948ee274dab54c28620d773411d1562628d4df40 (patch) | |
tree | 4ada55e6a5fdb0ab66bbaf3f30de592448201f80 /src/nm-ip4-config.h | |
parent | 54d49012b1cf8ad3083b518b42e3db498594d081 (diff) | |
download | NetworkManager-948ee274dab54c28620d773411d1562628d4df40.tar.gz |
2008-12-09 Dan Williams <dcbw@redhat.com>
* libnm-util/libnm-util.ver
libnm-util/nm-setting-ip4-config.c
libnm-util/nm-setting-ip4-config.h
- Add 'never-default' property, which when true indicates that a
connection should never be the default connection
* src/nm-ip4-config.c
src/nm-ip4-config.h
- (nm_ip4_config_get_never_default, nm_ip4_config_set_never_default):
Add never-default helpers
* src/NetworkManagerUtils.c
- (nm_utils_merge_ip4_config): update never-default when merging the
IP4 setting to the IP4 config
* src/NetworkManagerSystem.c
- (nm_system_apply_ip4_config): if the connection is never-default,
don't add routes without a gateway
* src/NetworkManagerPolicy.c
- (get_best_device): don't let never-default connections be the best
- (update_routing_and_dns): handle never-default for VPN connections
* system-settings/plugins/ifcfg-rh/reader.c
- (make_ip4_setting): handle never-default by checking GATEWAYDEV
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/branches/NETWORKMANAGER_0_7@4378 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
Diffstat (limited to 'src/nm-ip4-config.h')
-rw-r--r-- | src/nm-ip4-config.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nm-ip4-config.h b/src/nm-ip4-config.h index 05e381245b..2e9de5095b 100644 --- a/src/nm-ip4-config.h +++ b/src/nm-ip4-config.h @@ -89,6 +89,9 @@ void nm_ip4_config_set_mtu (NMIP4Config *config, guint32 mt guint32 nm_ip4_config_get_mss (NMIP4Config *config); void nm_ip4_config_set_mss (NMIP4Config *config, guint32 mss); +gboolean nm_ip4_config_get_never_default (NMIP4Config *config); +void nm_ip4_config_set_never_default (NMIP4Config *config, gboolean never_default); + /* Flags for nm_ip4_config_to_rtnl_addr() */ #define NM_RTNL_ADDR_NONE 0x0000 #define NM_RTNL_ADDR_ADDR 0x0001 |