diff options
| author | Roy Marples <roy@marples.name> | 2009-03-20 15:26:46 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2009-03-20 15:26:46 +0000 |
| commit | d7d07e5ae7dd3e5ec8868e19bc188cbe4a70b837 (patch) | |
| tree | 7dede906a22fc7882721035a1351ff754b0ad766 /if-linux.c | |
| parent | da7e6aef0b0d5186738b9430201e783373efe7c8 (diff) | |
| download | dhcpcd-d7d07e5ae7dd3e5ec8868e19bc188cbe4a70b837.tar.xz | |
Allow dhcpcd to run on loopback interfaces if specified.
Diffstat (limited to 'if-linux.c')
| -rw-r--r-- | if-linux.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -561,6 +561,14 @@ discover_interfaces(int argc, char * const *argv) continue; } if ((ifp = init_interface(p))) { + /* Don't allow loopback unless explicit */ + if (ifp->flags & IFF_LOOPBACK && + argc == 0 && + ifdc == 0) + { + free_interface(ifp); + continue; + } if (ifl) ifl->next = ifp; else |
