[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/02: services: dhcp-client: Ignore interfaces that are not ARP capable
02/02: services: dhcp-client: Ignore interfaces that are not ARP capable.
Thu, 9 May 2019 14:11:38 -0400 (EDT)
mbakke pushed a commit to branch master
in repository guix.
Author: Marius Bakke <address@hidden>
Date: Thu May 9 19:53:05 2019 +0200
services: dhcp-client: Ignore interfaces that are not ARP capable.
* gnu/services/networking.scm (dhcp-client-service-type): Filter interfaces
that do not support the ARP protocol.
gnu/services/networking.scm | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/gnu/services/networking.scm b/gnu/services/networking.scm
index 03b2c6e..082a85f 100644
@@ -190,7 +190,9 @@ fe80::1%lo0 apps.facebook.com\n")
;; interfaces are typically down at this point. Thus we
;; our own interface discovery here.
- (negate loopback-network-interface?))
+ (lambda (interface)
+ (and (arp-network-interface? interface)
+ (not (loopback-network-interface? interface)))))
(filter valid? (all-network-interface-names)))