Mercurial > hg > dhcpcd
comparison src/dhcp6.c @ 5553:ef762d54fb7a draft
DHCP6: Abort in test mode when an error is returned by server.
| author | Roy Marples <roy@marples.name> |
|---|---|
| date | Wed, 25 Nov 2020 15:14:11 +0000 |
| parents | a0d828e25482 |
| children | 3853222e97c7 |
comparison
equal
deleted
inserted
replaced
| 5552:66dc60bf133d | 5553:ef762d54fb7a |
|---|---|
| 2062 loglevel = LOG_ERR; | 2062 loglevel = LOG_ERR; |
| 2063 logmessage(loglevel, "%s: DHCPv6 REPLY: %s", ifp->name, status); | 2063 logmessage(loglevel, "%s: DHCPv6 REPLY: %s", ifp->name, status); |
| 2064 free(sbuf); | 2064 free(sbuf); |
| 2065 state->lerror = code; | 2065 state->lerror = code; |
| 2066 errno = 0; | 2066 errno = 0; |
| 2067 | |
| 2068 if (code != 0 && ifp->ctx->options & DHCPCD_TEST) | |
| 2069 eloop_exit(ifp->ctx->eloop, EXIT_FAILURE); | |
| 2070 | |
| 2067 return (int)code; | 2071 return (int)code; |
| 2068 } | 2072 } |
| 2069 | 2073 |
| 2070 const struct ipv6_addr * | 2074 const struct ipv6_addr * |
| 2071 dhcp6_iffindaddr(const struct interface *ifp, const struct in6_addr *addr, | 2075 dhcp6_iffindaddr(const struct interface *ifp, const struct in6_addr *addr, |
