From 5866de72c9df5e60879393db12cab4ddcfd8a57a Mon Sep 17 00:00:00 2001 From: jayantsahtoe <48123774+jayantsahtoe@users.noreply.github.com> Date: Mon, 29 Jul 2019 16:11:04 +0200 Subject: [PATCH] Update dhcpd.inc (#3610) DHCP-relay service will fail with the following error if DHCP server IP is know in static route: dhcrelay: Can't attach interface {ifname} to bpf device /dev/bpf0: Device not configured This is the only place where get_real_interface( ) isn't used --- src/etc/inc/plugins.inc.d/dhcpd.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/etc/inc/plugins.inc.d/dhcpd.inc b/src/etc/inc/plugins.inc.d/dhcpd.inc index 1cde0d3fc..dd0ddea09 100644 --- a/src/etc/inc/plugins.inc.d/dhcpd.inc +++ b/src/etc/inc/plugins.inc.d/dhcpd.inc @@ -1641,7 +1641,7 @@ function dhcpd_dhcrelay4_configure($verbose = false) if (!isset($destif)) { foreach (get_staticroutes() as $rtent) { if (ip_in_subnet($srvip, $rtent['network'])) { - $destif = $a_gateways[$rtent['gateway']]['interface']; + $destif = get_real_interface($a_gateways[$rtent['gateway']]['interface']); break; } }