diff options
| author | Roy Marples <roy@marples.name> | 2009-04-19 18:23:47 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2009-04-19 18:23:47 +0000 |
| commit | 0b07851c19199d7a7a9bc7ba3236555a8c0d81a3 (patch) | |
| tree | 02a7dd641f82b5c452c24df0ea7ccf0ac0c3902f /net.c | |
| parent | ff021b0b5dc1b9060b45e0451d02f1bf58cc75fc (diff) | |
| download | dhcpcd-0b07851c19199d7a7a9bc7ba3236555a8c0d81a3.tar.xz | |
Release dhcpcd-4.99.17
Diffstat (limited to 'net.c')
| -rw-r--r-- | net.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -279,6 +279,13 @@ discover_interfaces(int argc, char * const *argv) if (ifa->ifa_addr->sa_family != AF_PACKET) continue; #endif + /* It's possible for an interface to have >1 AF_LINK. + * For our purposes, we use the first one. */ + for (ifp = ifs; ifp; ifp = ifp->next) + if (strcmp(ifp->name, ifa->ifa_name) == 0) + break; + if (ifp) + continue; if (argc > 0) { for (i = 0; i < argc; i++) { #ifdef __linux__ |
