The only supported IPv4 method is DHCP at the moment
authorMarcel Holtmann <marcel@holtmann.org>
Mon, 24 Mar 2008 12:42:13 +0000 (13:42 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 24 Mar 2008 12:42:13 +0000 (13:42 +0100)
src/connman.h
src/iface.c

index 9f1262a..fbba1e6 100644 (file)
@@ -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       "/"
index 89763aa..3632a68 100644 (file)
@@ -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);