From 7eeb7c98b52d4d1444a1ddce566f1193a2694d1d Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Sat, 25 Jul 2020 02:50:45 -0600 Subject: [PATCH] libifupdown: lifecycle: remove built-in dhcp implementation --- libifupdown/lifecycle.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/libifupdown/lifecycle.c b/libifupdown/lifecycle.c index 4f77c2c..4d7ac15 100644 --- a/libifupdown/lifecycle.c +++ b/libifupdown/lifecycle.c @@ -164,13 +164,6 @@ handle_up(const struct lif_execute_opts *opts, struct lif_interface *iface, cons } } - if (iface->is_dhcp) - { - /* XXX: determine which dhcp client we should use */ - if (!lif_execute_fmt(opts, NULL, "/sbin/udhcpc -b -R -p /var/run/udhcpc.%s.pid -i %s", lifname, lifname)) - return false; - } - return true; } @@ -200,13 +193,6 @@ handle_down(const struct lif_execute_opts *opts, struct lif_interface *iface, co } } - if (iface->is_dhcp) - { - /* XXX: determine which dhcp client we should use */ - if (!lif_execute_fmt(opts, NULL, "/bin/kill $(cat /var/run/udhcpc.%s.pid)", lifname)) - return false; - } - skip_addresses: if (!lif_execute_fmt(opts, NULL, "/sbin/ip link set down dev %s", lifname)) return false;