diff --git a/ChangeLog b/ChangeLog index 45a15b194f..675ebcc750 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2008-05-29 Dan Williams + + * libnm-util/nm-setting-ip4-config.c + libnm-util/nm-setting-ip4-config.h + - Add a 'shared' method to indicate that this connection should be + brought up with a DHCP and proxy DNS server to facilitate + connection sharing. + - (verify): 'shared' method doesn't allow DNS or searches either + 2008-05-29 Dan Williams * configure.in diff --git a/libnm-util/nm-setting-ip4-config.c b/libnm-util/nm-setting-ip4-config.c index 0d845861e6..1044818b1e 100644 --- a/libnm-util/nm-setting-ip4-config.c +++ b/libnm-util/nm-setting-ip4-config.c @@ -40,19 +40,20 @@ verify (NMSetting *setting, GSList *all_settings) g_warning ("address is not provided"); return FALSE; } - } else if (!strcmp (self->method, NM_SETTING_IP4_CONFIG_METHOD_AUTOIP)) { + } else if ( !strcmp (self->method, NM_SETTING_IP4_CONFIG_METHOD_AUTOIP) + || !strcmp (self->method, NM_SETTING_IP4_CONFIG_METHOD_SHARED)) { if (self->dns && self->dns->len) { - g_warning ("may not specify DNS when using autoip"); + g_warning ("may not specify DNS when using autoip/shared"); return FALSE; } if (g_slist_length (self->dns_search)) { - g_warning ("may not specify DNS searches when using autoip"); + g_warning ("may not specify DNS searches when using autoip/shared"); return FALSE; } if (g_slist_length (self->addresses)) { - g_warning ("may not specify IP addresses when using autoip"); + g_warning ("may not specify IP addresses when using autoip/shared"); return FALSE; } } else if (!strcmp (self->method, NM_SETTING_IP4_CONFIG_METHOD_DHCP)) { diff --git a/libnm-util/nm-setting-ip4-config.h b/libnm-util/nm-setting-ip4-config.h index 62dd40839e..4925d4b0c9 100644 --- a/libnm-util/nm-setting-ip4-config.h +++ b/libnm-util/nm-setting-ip4-config.h @@ -25,6 +25,7 @@ G_BEGIN_DECLS #define NM_SETTING_IP4_CONFIG_METHOD_DHCP "dhcp" #define NM_SETTING_IP4_CONFIG_METHOD_AUTOIP "autoip" #define NM_SETTING_IP4_CONFIG_METHOD_MANUAL "manual" +#define NM_SETTING_IP4_CONFIG_METHOD_SHARED "shared" typedef struct { guint32 address;