diff options
| author | Roy Marples <roy@marples.name> | 2010-02-26 20:37:30 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2010-02-26 20:37:30 +0000 |
| commit | 255e14dab144a3f6cb1910d9ea164afa9ff98220 (patch) | |
| tree | 9d12e0f60af10ceca6bbc1979353a4481a40b72a /net.c | |
| parent | 716f28888275611c14c492f6f4d2aaab24f59a8f (diff) | |
| download | dhcpcd-255e14dab144a3f6cb1910d9ea164afa9ff98220.tar.xz | |
Enable net.ipv4.conf.$iface.promote_secondaries on Linux so that
we keep the subnet when changing addresses on the same subnet.
Diffstat (limited to 'net.c')
| -rw-r--r-- | net.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -449,6 +449,14 @@ discover_interfaces(int argc, char * const *argv) "%s: unknown hardware family", p); } } + + /* Handle any platform init for the interface */ + if (if_init(ifp) == -1) { + syslog(LOG_ERR, "%s: if_init: %m", p); + free_interface(ifp); + continue; + } + if (ifl) ifl->next = ifp; else |
