From e582990bb82c9b76c67e3c3121d6c7c3c2739b92 Mon Sep 17 00:00:00 2001 From: Samuel Ortiz Date: Fri, 9 Jul 2010 17:45:26 +0200 Subject: [PATCH] Add DHCP plugins priority flags --- include/dhcp.h | 4 ++++ plugins/dhclient.c | 1 + 2 files changed, 5 insertions(+) diff --git a/include/dhcp.h b/include/dhcp.h index ed7f376..e10f874 100644 --- a/include/dhcp.h +++ b/include/dhcp.h @@ -40,6 +40,10 @@ enum connman_dhcp_state { CONNMAN_DHCP_STATE_FAIL = 4, }; +#define CONNMAN_DHCP_PRIORITY_LOW -100 +#define CONNMAN_DHCP_PRIORITY_DEFAULT 0 +#define CONNMAN_DHCP_PRIORITY_HIGH 100 + struct connman_dhcp; struct connman_dhcp *connman_dhcp_ref(struct connman_dhcp *dhcp); diff --git a/plugins/dhclient.c b/plugins/dhclient.c index 4a25c27..b3bcf0e 100644 --- a/plugins/dhclient.c +++ b/plugins/dhclient.c @@ -226,6 +226,7 @@ static int dhclient_release(struct connman_dhcp *dhcp) static struct connman_dhcp_driver dhclient_driver = { .name = "dhclient", + .priority = CONNMAN_DHCP_PRIORITY_HIGH, .request = dhclient_request, .release = dhclient_release, }; -- 2.7.4