diff options
| author | Roy Marples <roy@marples.name> | 2008-10-18 16:41:19 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2008-10-18 16:41:19 +0000 |
| commit | eae4f5b4724b0a237bdf036479435e553b6ecd90 (patch) | |
| tree | 2c080a55cb7df85b7bd92c0ba2d636cd37d85c75 /configure.c | |
| parent | aec7d71ddb2d4236c7db2fe79350274ca26e178f (diff) | |
| download | dhcpcd-eae4f5b4724b0a237bdf036479435e553b6ecd90.tar.xz | |
Get INFORM support almost working again.
Diffstat (limited to 'configure.c')
| -rw-r--r-- | configure.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/configure.c b/configure.c index d4652aa5..53fd9a8d 100644 --- a/configure.c +++ b/configure.c @@ -479,7 +479,8 @@ configure(struct interface *iface, const char *reason) /* This also changes netmask */ if (!(iface->state->options->options & DHCPCD_INFORM) || - !has_address(iface->name, &addr, &net)) { + !has_address(iface->name, &addr, &net)) + { syslog(LOG_DEBUG, "%s: adding IP address %s/%d", iface->name, inet_ntoa(addr), inet_ntocidr(net)); if (add_address(iface, &addr, &net, &brd) == -1 && @@ -512,7 +513,8 @@ configure(struct interface *iface, const char *reason) build_routes(); if (arp_flush() == -1) syslog(LOG_ERR, "arp_flush: %m"); - if (!iface->state->lease.frominfo) + if (!iface->state->lease.frominfo && + !(iface->state->options->options & DHCPCD_INFORM)) if (write_lease(iface, dhcp) == -1) syslog(LOG_ERR, "write_lease: %m"); run_script(iface, reason); |
