Mercurial > hg > dhcpcd
changeset 4432:693209ca41db draft
sun: Don't report error if interface does not exist during preinit
For sun this is normal as we only create the initial interface
when adding an address.
| author | Roy Marples <roy@marples.name> |
|---|---|
| date | Sun, 14 Apr 2019 12:53:25 +0300 |
| parents | d9379821c392 |
| children | 4262dbc903e8 |
| files | src/dhcpcd.c |
| diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/dhcpcd.c Sat Apr 13 18:40:39 2019 +0300 +++ b/src/dhcpcd.c Sun Apr 14 12:53:25 2019 +0300 @@ -979,7 +979,12 @@ if ((!(ifp->ctx->options & DHCPCD_MASTER) || ifp->options->options & DHCPCD_IF_UP) && - if_up(ifp) == -1) + if_up(ifp) == -1 +#ifdef __sun + /* Interface could not yet be plumbed. */ + && errno != ENXIO +#endif + ) logerr("%s: %s", __func__, ifp->name); if (ifp->options->options & DHCPCD_LINK &&
