From: Marcel Holtmann Date: Mon, 24 Mar 2008 12:42:13 +0000 (+0100) Subject: The only supported IPv4 method is DHCP at the moment X-Git-Tag: 0.1~360 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=610964c498aa86bed1086abafabdd2496ebafbc9;p=platform%2Fupstream%2Fconnman.git The only supported IPv4 method is DHCP at the moment --- diff --git a/src/connman.h b/src/connman.h index 9f1262a..fbba1e6 100644 --- a/src/connman.h +++ b/src/connman.h @@ -25,6 +25,8 @@ #define CONNMAN_SERVICE "org.freedesktop.connman" +#define CONNMAN_ERROR_INTERFACE CONNMAN_SERVICE ".Error" + #define CONNMAN_AGENT_INTERFACE CONNMAN_SERVICE ".Agent" #define CONNMAN_MANAGER_PATH "/" diff --git a/src/iface.c b/src/iface.c index 89763aa..3632a68 100644 --- a/src/iface.c +++ b/src/iface.c @@ -884,7 +884,7 @@ static void append_ipv4(DBusMessage *reply, struct connman_iface *iface) DBUS_TYPE_STRING_AS_STRING DBUS_TYPE_VARIANT_AS_STRING DBUS_DICT_ENTRY_END_CHAR_AS_STRING, &dict); - str = __connman_ipv4_method2string(iface->ipv4.method); + str = __connman_ipv4_method2string(CONNMAN_IPV4_METHOD_DHCP); append_entry(&dict, "Method", DBUS_TYPE_STRING, &str); if (iface->ipv4.address.s_addr != INADDR_ANY) { @@ -932,6 +932,9 @@ static DBusMessage *set_ipv4(DBusConnection *conn, DBG("conn %p", conn); + return dbus_message_new_error(msg, CONNMAN_ERROR_INTERFACE + ".NotImplemented", ""); + dbus_message_iter_init(msg, &array); dbus_message_iter_recurse(&array, &dict);