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.
This commit is contained in:
Marius Bakke 2019-05-09 19:53:05 +02:00
parent 5f5499d684
commit 6c2180f5d0
No known key found for this signature in database
GPG key ID: A2A06DF2A33A54FA

View file

@ -190,7 +190,9 @@ (define pid-file
;; interfaces are typically down at this point. Thus we perform
;; our own interface discovery here.
(define valid?
(negate loopback-network-interface?))
(lambda (interface)
(and (arp-network-interface? interface)
(not (loopback-network-interface? interface)))))
(define ifaces
(filter valid? (all-network-interface-names)))