*
* Connection Manager
*
- * Copyright (C) 2007-2008 Intel Corporation. All rights reserved.
+ * Copyright (C) 2007-2009 Intel Corporation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
#include <dbus/dbus.h>
+#define DHCLIENT_INTF "org.isc.dhclient"
+#define DHCLIENT_PATH "/org/isc/dhclient"
+
extern char **environ;
static void append(DBusMessageIter *dict, const char *pattern)
return 0;
}
- msg = dbus_message_new_method_call(busname, "/org/isc/dhclient",
- "org.isc.dhclient", "notify");
+ msg = dbus_message_new_method_call(busname, DHCLIENT_PATH,
+ DHCLIENT_INTF, "notify");
if (msg == NULL) {
dbus_connection_unref(conn);
fprintf(stderr, "Failed to allocate method call\n");
if (dbus_connection_send(conn, msg, NULL) == FALSE)
fprintf(stderr, "Failed to send message\n");
+ dbus_connection_flush(conn);
+
dbus_message_unref(msg);
dbus_connection_unref(conn);