me
/
guix
Archived
1
0
Fork 0

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.
master
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
1 changed files with 3 additions and 1 deletions

View File

@ -190,7 +190,9 @@ fe80::1%lo0 apps.facebook.com\n")
;; 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)))